From patchwork Mon Aug 21 11:43:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9912243 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 C696E602A0 for ; Mon, 21 Aug 2017 11:45:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE573286E4 for ; Mon, 21 Aug 2017 11:45:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2D942875B; Mon, 21 Aug 2017 11:45:15 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham 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 5170F286E4 for ; Mon, 21 Aug 2017 11:45:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753816AbdHULow (ORCPT ); Mon, 21 Aug 2017 07:44:52 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36654 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753814AbdHULos (ORCPT ); Mon, 21 Aug 2017 07:44:48 -0400 Received: by mail-pg0-f66.google.com with SMTP id y129so23456283pgy.3; Mon, 21 Aug 2017 04:44:48 -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=3VJMjQJXiEsz55P6UEOh1siLTBNxIHhTGTLfJviQ9TI=; b=Dz3pcDTRh7K2J5J47qaNxjMb5AGL6bR10APYaNBbBBSUwjP4X5+AOikHK2lEWqzxOP 9V/z9qwpmKTJ/PJJmKs5rWAt4Jb4GGv9B5P9uClCDiOtMv+ysLHM4Y9IqH2rGiD7f0VR QYt60yCl7oCbEzJVlYxEDhSyW1FlwQ6MPS9uGokughbtaNGtdjbxJ9MIHKIUTK/06BB1 tpxfsxrxxLnsgxNfCk0DUVIBly7vFOCx4YpE+8pRgdNu1ni51kko+isHCA8q/YIuPTgH 2Jtu8JzbE6Vh/tqiXkYXIQLRbWofyB3YmAg5pqK3nOhqji9YQhOqYxi5ijcdVqTWqdbd l+jw== 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=3VJMjQJXiEsz55P6UEOh1siLTBNxIHhTGTLfJviQ9TI=; b=CZikIETWqWe47zQcGIpQ+N47z1vBYWnbv8n08nlolOrIkz0+xVm33UQ17G+Jfpcx1O zphl+OgqaxOozDzv62SzMoyO3jP5Nork4SNfC24a34w5O4Tq+xwDGZw9/6XLuoEiqjXu PJt30AX2ju6jDP68xEqy3hhVqldDqkz0fivfZzpeegvz/krOVk7dKQBomr+HB/aTl+0p V9BkB09tYRepfbQXzRsCNKSUEnpPlX1QYeDTIonPcxJz6gZk9JqOj/Rd8FBrEW/wG+X2 dGq8muSJ4E+DDelLMtO1uOgwr0mp7R+PwdtF2C0L9gqo2hLmvbvBEhNLrbSOQuasEmBo bRgA== X-Gm-Message-State: AHYfb5g7yazwYnS4ycMbyUcFnwobQDy2VGY3bqBiKlyVgbrt1nCBCXS2 eeE1z6G+H29PWQ== X-Received: by 10.99.53.76 with SMTP id c73mr16129912pga.398.1503315887989; Mon, 21 Aug 2017 04:44:47 -0700 (PDT) Received: from gmail.com ([117.196.124.142]) by smtp.gmail.com with ESMTPSA id h14sm26002631pgn.34.2017.08.21.04.44.39 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 21 Aug 2017 04:44:47 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Mon, 21 Aug 2017 17:14:36 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, rjw@rjwysocki.net, lenb@kernel.org, jbacik@fb.com, jikos@kernel.org, benjamin.tissoires@redhat.com, manish.chopra@cavium.com, rahul.verma@cavium.com, Dept-GELinuxNICDev@cavium.com, harish.patil@cavium.com, cascardo@holoscopio.com, don@syst.com.br, dvhart@infradead.org, andy@infradead.org, sre@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, nbd-general@lists.sourceforge.net, linux-input@vger.kernel.org, netdev@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 6/6] power: supply: make device_attribute const Date: Mon, 21 Aug 2017 17:13:12 +0530 Message-Id: <1503315792-14837-7-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503315792-14837-1-git-send-email-bhumirks@gmail.com> References: <1503315792-14837-1-git-send-email-bhumirks@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are only passed as an argument to the function device_create_file and device_remove_file and the corresponding arguments are of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/power/supply/olpc_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/olpc_battery.c b/drivers/power/supply/olpc_battery.c index fc20ca3..3bc2eea 100644 --- a/drivers/power/supply/olpc_battery.c +++ b/drivers/power/supply/olpc_battery.c @@ -559,7 +559,7 @@ static ssize_t olpc_bat_error_read(struct device *dev, return sprintf(buf, "%d\n", ec_byte); } -static struct device_attribute olpc_bat_error = { +static const struct device_attribute olpc_bat_error = { .attr = { .name = "error", .mode = S_IRUGO,