Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1703899
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 03/11] usb: chipidea: otg_fsm: constify attribute_group structures. |
| Date | Fri, 04 Aug 2017 14:10:01 +0200 |
| Message-ID | <uaJAt-6MJ-5@gated-at.bofh.it> (permalink) |
| References | <uaJAt-6MJ-7@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q9YuKK4aQUzxoCo45qoU+sDNFcXqi8B0CE0j5Ua8fxU=; b=Sk1qqYrXHw24wd7WLkmDkzbWCkIh5/mOozfzJkO8evIb1iO+k38ridWms4TVue92AW 4vraP9IrQvZqVZum5l5p7hK2WUv4G9FHi848Vw8FgPSpE5NyH8lSnUms+XicWnhaIzTZ /cTW3/H9ytnRD9gqTE+sfFmDFgRnNU4nnQfFL1QCiG/ILARSrIGFFmRlOzk6nQLkVafO fGGuwTgv+VzpO0q/7luq3incDF0hxSCndo2Q4rHHy+vy9QLHtrYsLixiHJe3PTRIacoH dKDt9oAqnLmRqqV0FDITxE0COHmGAWIe22L1OYLYEjQnahIWq4rRJKsDn0vXEV+shAc2 kfpg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q9YuKK4aQUzxoCo45qoU+sDNFcXqi8B0CE0j5Ua8fxU=; b=Y39ppAjDZkyAgoAw6kalNfoKaRSsF5wY/AKbabdYoFjkbu2rDfol2ixJeqcRTXkgq6 w+NGtXIfJAUXVGTupawF3IgUKIA9R82YBjyhLMF5yBO8eqkg4OUXkASk1L383XsIo0JV knm7bJsRSqXj1e2wo0zcZpOxVv0+qnToL7eSAwdljB1vQB+xEDeYI0hzTj/K/wQ5TPgE Du7LpZo5ZmCAOrkEpmStPrXagQx/8iX70EkLGulqubvRDRTFpxL/9zaOOI58qz25Gy6X Y1AzDcsnaYfCk00TD1SenfFKBx5YOHeJ4VDR5N9DgJKJhVeD7IpjzamVLnX+KI2NYOb+ g/6w== |
| X-Gm-Message-State | AIVw1107Y9L5FpCAF69GwX5OwJXT8FlaIy8D7/POfA2GQL/GrqFXB28J VlievznqstVeGA== |
| X-Received | by 10.99.126.86 with SMTP id o22mr2063922pgn.382.1501848442152; Fri, 04 Aug 2017 05:07:22 -0700 (PDT) |
| X-Mailer | git-send-email 1.9.1 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 24 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org |
| X-Original-Date | Fri, 4 Aug 2017 17:36:39 +0530 |
| X-Original-Message-ID | <1501848407-21894-4-git-send-email-arvind.yadav.cs@gmail.com> |
| X-Original-References | <1501848407-21894-1-git-send-email-arvind.yadav.cs@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1703899 |
Show key headers only | View raw
attribute_group are not supposed to change at runtime. All functions
working with attribute_group provided by <linux/sysfs.h> work with
const attribute_group. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/usb/chipidea/otg_fsm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c
index 949183e..5ea0246 100644
--- a/drivers/usb/chipidea/otg_fsm.c
+++ b/drivers/usb/chipidea/otg_fsm.c
@@ -193,7 +193,7 @@ static DEVICE_ATTR(a_bus_drop, S_IRUGO | S_IWUSR, get_a_bus_drop,
NULL,
};
-static struct attribute_group inputs_attr_group = {
+static const struct attribute_group inputs_attr_group = {
.name = "inputs",
.attrs = inputs_attrs,
};
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 03/11] usb: chipidea: otg_fsm: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200
csiph-web