From patchwork Wed Oct 11 14:05:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9999755 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 E608F602BF for ; Wed, 11 Oct 2017 14:06:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8BCC28A2C for ; Wed, 11 Oct 2017 14:06:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD94928A54; Wed, 11 Oct 2017 14:06:03 +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 75C3428A2C for ; Wed, 11 Oct 2017 14:06:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178AbdJKOGC (ORCPT ); Wed, 11 Oct 2017 10:06:02 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54718 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbdJKOGB (ORCPT ); Wed, 11 Oct 2017 10:06:01 -0400 Received: by mail-wm0-f67.google.com with SMTP id i124so5153030wmf.3; Wed, 11 Oct 2017 07:06:01 -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; bh=CTvsaCr/fRd+x2t7h+FgZE8sUzmk3JAubFgeq6EUXFw=; b=j7Vx2Fwcq0OUO/ZNt6h+/ZmWGHLa8HAKkI1Sm8dsqij71ROfgdg7UZ6EXHt/bsOQ2/ kaoQMN+b/wGLO7f/C9v+gittNsEFphJQAbzSMkJOfH6XFWm2DHR1z3Opqtaqdo0gyVIz IOUtC+NVx+0dYSky1YVp5KbmSaEdlYL78HkCxoF1zSfvMAcBq1BkosLLR6Mnbwb7J0+s J31iA+V2NoYgbnaM3fb761St+hg9UY95TxZqbR30XgbFnfkR900QFoN6xtk4w8xKSuA4 k9UUiOJ7w9OYO/Im78w9Pivi9qZTb8C9t/GunPSmO56L6QeTUeLbAStJiV5NQKhtYppK BW9A== 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; bh=CTvsaCr/fRd+x2t7h+FgZE8sUzmk3JAubFgeq6EUXFw=; b=eC1ZMjRo+XQ9tWTyTwODit8hCYT9sfQOwpMYPDT9AIViFx6NEeWolFEAcY4FrzO8b/ MIZIegver520a1lyQCl3MHCExe/rPws/vXfCPMHjT5eN2YlnGI4oQVdYrq6vBV0ZXNw5 x5Dms7iy0X9cWwVNRYnrXaJiMEM4BorQF/OBnVSD7ge/4Rgy2FmuGpm+sqbYfpmTF2WD iH1Jaut42G86uiQvvZjnJg8Ws3qi0F9MhgFlQZj2551vkQk4URhLFdYZs5hK8MBxPTLI LxybirC6fs+FNluamJE5jKW3fGsxYjrKHFOUnGeeoZJrCkDdyER5peuHyvwZ0+slLDCe 3qQw== X-Gm-Message-State: AMCzsaU9UOEdkYIc8X9HwKNMSZXkwdCqbgvvkk57cv4PRP6B5yecMopY sk+j1wlhGM3674hPTud7p/Q= X-Google-Smtp-Source: AOwi7QChy7Whn7Sdm5wcofx0rwljm4ifHmZtK2lYfOcA9WC6cZ/61RWr75HvsmRNQ5QHxhID//7RvA== X-Received: by 10.28.23.1 with SMTP id 1mr13120294wmx.101.1507730760313; Wed, 11 Oct 2017 07:06:00 -0700 (PDT) Received: from gmail.com (dell-goyal.wifi.rsr.lip6.fr. [132.227.77.190]) by smtp.gmail.com with ESMTPSA id f3sm5126714wre.66.2017.10.11.07.05.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 11 Oct 2017 07:05:59 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 11 Oct 2017 16:05:58 +0200 From: Bhumika Goyal To: julia.lawall@lip6.fr, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] iio: sw_device: make the function argument as const Date: Wed, 11 Oct 2017 16:05:47 +0200 Message-Id: <1507730747-13462-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is a follow-up patch for: https://patchwork.kernel.org/patch/9999649/ Make the argument of the function iio_swd_group_init_type_name const as it is only passed to the function config_group_init_type_name having the argument as const. Signed-off-by: Bhumika Goyal --- This change allows a lot of config_item_type structures to be const. include/linux/iio/sw_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iio/sw_device.h b/include/linux/iio/sw_device.h index fa79319..8642b91 100644 --- a/include/linux/iio/sw_device.h +++ b/include/linux/iio/sw_device.h @@ -60,7 +60,7 @@ struct iio_sw_device *to_iio_sw_device(struct config_item *item) static inline void iio_swd_group_init_type_name(struct iio_sw_device *d, const char *name, - struct config_item_type *type) + const struct config_item_type *type) { #if IS_ENABLED(CONFIG_CONFIGFS_FS) config_group_init_type_name(&d->group, name, type);