From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433AbdHBOVi (ORCPT ); Wed, 2 Aug 2017 10:21:38 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37182 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150AbdHBOVh (ORCPT ); Wed, 2 Aug 2017 10:21:37 -0400 From: Bhumika Goyal To: julia.lawall@lip6.fr, rubini@gnudd.com, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] FMC: add const to bin_attribute structure Date: Wed, 2 Aug 2017 19:51:26 +0530 Message-Id: <1501683686-523-1-git-send-email-bhumirks@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 Add const to bin_attribute structure as it is only passed to the functions sysfs_{remove/create}_bin_file. The corresponding arguments are of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/fmc/fmc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fmc/fmc-core.c b/drivers/fmc/fmc-core.c index 353fc54..3885130 100644 --- a/drivers/fmc/fmc-core.c +++ b/drivers/fmc/fmc-core.c @@ -111,7 +111,7 @@ static ssize_t fmc_write_eeprom(struct file *file, struct kobject *kobj, return fmc->op->write_ee(fmc, off, buf, count); } -static struct bin_attribute fmc_eeprom_attr = { +static const struct bin_attribute fmc_eeprom_attr = { .attr = { .name = "eeprom", .mode = S_IRUGO | S_IWUSR, }, .size = 8192, /* more or less standard */ .read = fmc_read_eeprom, -- 1.9.1