From patchwork Wed Oct 11 16:51:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 10000091 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 9AA8C602BF for ; Wed, 11 Oct 2017 16:52:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9948928AC5 for ; Wed, 11 Oct 2017 16:52:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E09D28AE0; Wed, 11 Oct 2017 16:52: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 4C6FC28AC5 for ; Wed, 11 Oct 2017 16:52:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752297AbdJKQwD (ORCPT ); Wed, 11 Oct 2017 12:52:03 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37904 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751691AbdJKQwA (ORCPT ); Wed, 11 Oct 2017 12:52:00 -0400 Received: by mail-wm0-f66.google.com with SMTP id q124so2505725wmb.5; Wed, 11 Oct 2017 09:51:59 -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=/OfjyZ33I+N2V6n1ALbQ8OXIoLYz9aRsvcEvoHSsre4=; b=LKhaFYI4bQ4W/ndLy8AEc4fQJQtyEbp4rEF2gvHWz2eY5nHHQL0udr2lKj4EVU4vg1 TC7ZBRAHXfrkw+KEOUieeDauQTmrXl7vwkfbD15WGmYmTbUtW+25Uf2klbnwHxT3lb0l uPYdJggDe0tXBV56pH1F7RjHAyOFibD0Vkw+va4A11M3X0ppRjUfGTaVt2x/5sv1w344 ldMPJKq1Q69J16O/zikG7pKGFIuGGpOTRFqkNOrG/zdRh0kyqjAkvIkrnETAJ4T4kqn7 SWYTttO0dLzlTZRxUrC7qhs0XsmYI7zfinvuHOwrXHM1BABbFT069QsBn34IUwpY50Ja GLqQ== 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=/OfjyZ33I+N2V6n1ALbQ8OXIoLYz9aRsvcEvoHSsre4=; b=pls1c2QMEa2iKSWDFb2yFhP7Ov7KMODAAzLjly777c1VqY4Vmb6vyEexvCou8GPPJf cjH//QHHqczRR6xBMfKYHRax/1TrSpAQ4w9bSmoPataCha2fqx2jub3OgOheCUEuSn27 ofPXGxWzg4GUL2oXbIvrjXPlm5vdMyaoQ/cGuKlpMY7utMdp1p+cdKsRKlkKnai1u2h5 +ngyY/i2i3/U7kbscNuGM0to8izXCpVVvld2dkjjrpUeJSovGiOIF9g4W4IBSG0/gpmt C6vB/nQ/Ka97cbhdUCCBhV1phFZBSQlKPD/mJHzovj5snGTBXyaZWijgSUWYR6CSxk7P +bvg== X-Gm-Message-State: AMCzsaVuFDuE5BgMcNbjc8AS4GPLPmZnDjo0GPzZznHs79UWfGoSaSco jyesyfTUBNg4Uzf9K7wKIHQ= X-Google-Smtp-Source: AOwi7QDno0Wefz7WwjUgsmfaYzvaT0+xsGd8jT8OALoRphq2e4j5gdQiYfJVAR7IkGOFJT29GsHr5A== X-Received: by 10.223.172.212 with SMTP id o78mr233514wrc.6.1507740718715; Wed, 11 Oct 2017 09:51:58 -0700 (PDT) Received: from gmail.com (dell-goyal.wifi.rsr.lip6.fr. [132.227.77.190]) by smtp.gmail.com with ESMTPSA id a34sm30589648wra.64.2017.10.11.09.51.56 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 11 Oct 2017 09:51:58 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 11 Oct 2017 18:51:56 +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_trigger: make the function argument as const Date: Wed, 11 Oct 2017 18:51:35 +0200 Message-Id: <1507740695-3053-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_swt_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 --- include/linux/iio/sw_trigger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iio/sw_trigger.h b/include/linux/iio/sw_trigger.h index c97eab6..0c43738 100644 --- a/include/linux/iio/sw_trigger.h +++ b/include/linux/iio/sw_trigger.h @@ -60,7 +60,7 @@ struct iio_sw_trigger *to_iio_sw_trigger(struct config_item *item) static inline void iio_swt_group_init_type_name(struct iio_sw_trigger *t, 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(&t->group, name, type);