From patchwork Wed Aug 2 17:57:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9877341 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E4047602BC for ; Wed, 2 Aug 2017 17:58:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E606428801 for ; Wed, 2 Aug 2017 17:58:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA92728813; Wed, 2 Aug 2017 17:58:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4B3728801 for ; Wed, 2 Aug 2017 17:58:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752542AbdHBR5e (ORCPT ); Wed, 2 Aug 2017 13:57:34 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37193 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442AbdHBR5c (ORCPT ); Wed, 2 Aug 2017 13:57:32 -0400 Received: by mail-pg0-f67.google.com with SMTP id 83so7154139pgb.4; Wed, 02 Aug 2017 10:57:31 -0700 (PDT) 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=83t1EsekNtNr91OqbuDExJT3j3/OtJ2RkztHWNUlX/s=; b=UfGlCMH4PjPRAUZrMjUijja+HC5xSzoSpMBrkvqCpi20CVOjpTwjyL6NXZn0Rl9Tvm nF7zz1GrFKHKuiZA+KWPn+MplhJWh6/O6WxTwAPE0/kTD7UILS87x9ApZtoGwLvuYLcZ iELbbx0q71y32piuy6zOb5tR2cBRZMjC5YBsCGgLAPTqlgZCF1tymWAeC6TyN3hPYoVe o01c03iXRKgQT4NlxsS+pfTMu+NnRNd+pDzLhnVatR1C9qoCExMzvRIVSzQqTp0xT5Dh ySRG/yy3p/y48rO6QeFROrfsdz+0BczpfkMDbszbE2jd9N0LSCQGhSeRm+ucMGe6EtZq MIkA== 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=83t1EsekNtNr91OqbuDExJT3j3/OtJ2RkztHWNUlX/s=; b=exzbUEjuFDnPbtfzhzriDf+HGbhz7E8mRIetSMSjzibv5fe2mnsKBvGvzpcr1lmMXw ATCzk9adwqKcSzhDvbOecJIctYzTB7cs7aL6ucV4e/Ki89xz9hfX9isf8NPNjW0GEL1p 4OBu6XtftKUZY4x9yBxAtZJWSoG0HgDgZstlOlWN2ahlkO1GDfcRO1Jz4OmsAWNlxb78 DvnBDCZ+l+QxuGTZ0xabLePVllPI+Fi985+CapMWJ7sb060TEDAtmoksp1gq++Bm8VIy vNPJobxX/xgI89G9fgXORbsGmGAbDWGrTPsjooTqBBWjqdX4AsSiNkxmQg/9MCh2+Zb+ C6yg== X-Gm-Message-State: AIVw113qfkX1xWfaj7dajuf1Zb47YERhS73qoBkhHvnuR0X1KNsWzdXl Xe3oyG7hJdRwpw== X-Received: by 10.99.171.69 with SMTP id k5mr1763139pgp.248.1501696651537; Wed, 02 Aug 2017 10:57:31 -0700 (PDT) Received: from gmail.com ([117.196.96.230]) by smtp.gmail.com with ESMTPSA id t186sm65656063pgc.28.2017.08.02.10.57.26 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 02 Aug 2017 10:57:31 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 02 Aug 2017 23:27:24 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, harish.patil@cavium.com, manish.chopra@cavium.com, Dept-GELinuxNICDev@cavium.com Cc: Bhumika Goyal Subject: [PATCH 1/2] wlcore: add const to bin_attribute structure Date: Wed, 2 Aug 2017 23:27:13 +0530 Message-Id: <1501696634-15765-2-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501696634-15765-1-git-send-email-bhumirks@gmail.com> References: <1501696634-15765-1-git-send-email-bhumirks@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 to be const. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/ti/wlcore/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/sysfs.c b/drivers/net/wireless/ti/wlcore/sysfs.c index a9218e5..b72e210 100644 --- a/drivers/net/wireless/ti/wlcore/sysfs.c +++ b/drivers/net/wireless/ti/wlcore/sysfs.c @@ -138,7 +138,7 @@ static ssize_t wl1271_sysfs_read_fwlog(struct file *filp, struct kobject *kobj, return len; } -static struct bin_attribute fwlog_attr = { +static const struct bin_attribute fwlog_attr = { .attr = {.name = "fwlog", .mode = S_IRUSR}, .read = wl1271_sysfs_read_fwlog, };