Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098AbdF3MyD (ORCPT ); Fri, 30 Jun 2017 08:54:03 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34500 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbdF3MyB (ORCPT ); Fri, 30 Jun 2017 08:54:01 -0400 From: Arvind Yadav To: rjw@rjwysocki.net, lenb@kernel.org, rafael.j.wysocki@intel.com Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI / LPSS: constify attribute_group structures. Date: Fri, 30 Jun 2017 18:23:50 +0530 Message-Id: <6f913e6b3193d223832f5757f57b7c17f36687fb.1498827187.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 755 Lines: 24 attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/acpi/acpi_lpss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index 10347e3..e51a1e9 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c @@ -576,7 +576,7 @@ static ssize_t lpss_ltr_mode_show(struct device *dev, NULL, }; -static struct attribute_group lpss_attr_group = { +static const struct attribute_group lpss_attr_group = { .attrs = lpss_attrs, .name = "lpss_ltr", }; -- 1.9.1