Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1703906
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 08/11] usb: phy-tahvo: constify attribute_group structures. |
| Date | Fri, 04 Aug 2017 14:10:02 +0200 |
| Message-ID | <uaJAt-6MJ-19@gated-at.bofh.it> (permalink) |
| References | <uaJAt-6MJ-7@gated-at.bofh.it> |
| X-Original-To | Peter.Chen@nxp.com, balbi@kernel.org, baoyou.xie@linaro.org, castet.matthieu@free.fr, stf_xl@wp.pl, gregkh@linuxfoundation.org |
| 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=ohPqYHtjHkj17ooAuZXEuWSC+fTSaUGL56FDBBDuS48=; b=BI8wAf/rmS8L0aEreViDj3OHBrFJFi8H9LdznToUJMOaHIPPUBBJISkQy9YaDW2Cde Y6B9mlGzj+9DdaIdvtYw/yTMjxiikNI1VueNd31iPuSfeREia/Fw0AioKeJKIKuBdx/C oftXFeho77YSLu2IzkrAtMKSOZss0fczX+wwDl3/SCwfwGBZQhXLal+Y8jUSgWA43706 tkI9DEYzjR1KFE4Z4kY/XTQnfUXF4BcCyNJBzuP75BMeWXyBYDtR8tSAUAhqgLHFWMiT 0J8XiC+VFWxxlvM9qt6yQKC4hEY5Nw0ywSy4hJOF+819FCrlcprqOdvVMWkssMUs9Agy z54g== |
| 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=ohPqYHtjHkj17ooAuZXEuWSC+fTSaUGL56FDBBDuS48=; b=W15sWetKvGSgsGHkM4xyKW3AT69q3O449ENq2cfHZg4FoYpXjpiQEbqgruMkLEq5QL f2mwUFVR00WguVDA1B10nYcqwlRNVzYHoSWnjRw/BDod3sIYhmyEVxAfD6cpOIZfVQfR wuZAsafPlpEsbk/uqrZr4y+vnqTji1SDvw5TAlJN272c3yEXLMQZzOA4JpXOuh2nMoif iz4UoRYnwSweA/aYdW1h5KvIPcHE8VbxumATUUo/knhAeD9Es/5ZYucDYhje75qJEjp2 caQyVQfCmq7AsC07b8Rv75lJV5QgEASSbLnd2h1lvN9PhlfhrTGxoBwKDdHgVN9eTuB7 XFnQ== |
| X-Gm-Message-State | AIVw113R3TT/x/zF/pHiolJ9jCM3zU5d8SQ//VKUzDSzpzHufamZ/pNs UZ4+YvblOzMgTQ== |
| X-Received | by 10.84.232.15 with SMTP id h15mr2475089plk.189.1501848456669; Fri, 04 Aug 2017 05:07:36 -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:44 +0530 |
| X-Original-Message-ID | <1501848407-21894-9-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:1703906 |
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/phy/phy-tahvo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/phy/phy-tahvo.c b/drivers/usb/phy/phy-tahvo.c
index a31c868..8babd31 100644
--- a/drivers/usb/phy/phy-tahvo.c
+++ b/drivers/usb/phy/phy-tahvo.c
@@ -326,7 +326,7 @@ static ssize_t otg_mode_store(struct device *device,
NULL
};
-static struct attribute_group tahvo_attr_group = {
+static const struct attribute_group tahvo_attr_group = {
.attrs = tahvo_attributes,
};
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/11] constify usb attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 08/11] usb: phy-tahvo: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 11/11] usb: wusbcore: wusbhc: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 01/11] usb: atm: ueagle-atm: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 07/11] usb: phy-mv-usb: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 04/11] usb: usbtmc: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 10/11] usb: wusbcore: dev-sysfs: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 09/11] usb: wusbcore: cbaf: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 05/11] usb: hcd: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:10 +0200 [PATCH 02/11] usb: chipidea: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-04 14:20 +0200
csiph-web