Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3E77C43334 for ; Mon, 11 Jul 2022 10:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GP0rTfFk7ZT1Pq2cV51KC80Vlq/U7utHy/1pRH6lK4o=; b=m4jC4946sqFOh4 wDNsL+OJH9kAIe8iU4Bn7u3u9F92DXrDUW1fj8c4jkAY3b3fBuNCj6GnjeAwMF5gVRJQx0Nc5wlAW I0OaVnUwDHv/IrVM34CciYQykJdCqE8fi3w93fw6H4RC7syno6fAV4aVWkVOZVNHJehtNgimLW+YY ECBXSBPkITEkTO58v44hXoowvig4DozgA6x6ZsCY/kqZUaXLmMLLhuT/wfMmFKvZQFDXOteoqW/CV JvWN/gkK+ugo+4Gh9qZUQOs2VeKHv4mX0TFiImykIsCn1A8+FLYyqYwgsuhteF7v09AKYG4Vt2f46 N252kwJQMN05213xfGXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAqzV-000pz8-Gz; Mon, 11 Jul 2022 10:50:13 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAqzR-000pv0-Os for linux-arm-kernel@lists.infradead.org; Mon, 11 Jul 2022 10:50:11 +0000 Received: by mail-ed1-x52b.google.com with SMTP id r6so5705799edd.7 for ; Mon, 11 Jul 2022 03:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=zfyolTFID8xhViXE+u1/8e+Wzla73AuvDzsmwKE1sQ4=; b=GXF1fwSaKTgvV8DBW/wKTIAjMbvQyia0ceCdUfz+jo+fA40QBzTk3GOxKUq2d4UXPp Lki7csV6vSyLyT5HidpiSbOooGJR/VkF3W6Tc/bRvH2x9ijmeGfWM+cYgjQKbLZBdGvU mBzTnWgZh9WCR6Xtjwzm4SagzynWkaOvdMr2eqnRcpZ+8coEmdpsT6MqS6R1V1bYytbn +hmHJ3oUJDO04HFMiT40M1GesGL57FQzDqEVQ6IMqdlJFiEoVJrd5SKtvpATVBe8NHWp Srt0kfuhPXBZbKU4OSHPEJ94HUWwSPrPQtHLKXxhHmJQxYADN1lt6nadP1f2ha3/41OL R15g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zfyolTFID8xhViXE+u1/8e+Wzla73AuvDzsmwKE1sQ4=; b=aG0XkGLd1hFn92bBRg147h3DEryE40LZez9qae1Lw/3eI203xsF/bg2pXTjqt/ZsgV 0eRRJzLAXDgkkwg5/pjyfrFF7JD8MEP0yq4n5mMbqUB0cMPelNNy9LE5Ey28d+GqQuuW 3ge23fkTVjmpW6SK0velm54CFzkxt3lKpiFwxuAJCdaEnOrIhQS/LVgikJQ3hV4S7r8e HsYAveFyzjov8lWpK7uG52f5sqYUKiqeCHYnA3tH8VEB04vgEBZK+YzMXFISfs3kxu0t hlVtyHU26w8iJeaoZxZZQwjOwmYJdQyzMPZwI+0kP9tP/GedBbABofh04qEA5eZGS4GD k9jw== X-Gm-Message-State: AJIora/EU/JUudli55ROPO/kko5nYi3MPlAP9YI6dKMPqgAL4V1YU0Xr 2/Tq9x1O7GBFOHHlULIVYU0= X-Google-Smtp-Source: AGRyM1uImai7zOCOj1ESgSTujQz6aYcaSMlx0EZle9YmsPYF5MVaqsF03Ttpz6jXBOxKqNUtQuljpw== X-Received: by 2002:a05:6402:22b5:b0:43a:8e9f:f495 with SMTP id cx21-20020a05640222b500b0043a8e9ff495mr23119816edb.324.1657536604557; Mon, 11 Jul 2022 03:50:04 -0700 (PDT) Received: from felia.fritz.box (200116b8266e42009c70ae84c5cabc2b.dip.versatel-1u1.de. [2001:16b8:266e:4200:9c70:ae84:c5ca:bc2b]) by smtp.gmail.com with ESMTPSA id q21-20020a17090676d500b006fe8a4ec62fsm2541775ejn.4.2022.07.11.03.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 03:50:03 -0700 (PDT) From: Lukas Bulwahn To: Linus Walleij , Lee Jones , linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH v2] mfd: ab8500: clean up definitions in header after debugfs removal Date: Mon, 11 Jul 2022 12:48:29 +0200 Message-Id: <20220711104829.17940-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220711_035009_870737_B10668F6 X-CRM114-Status: GOOD ( 16.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Commit 3d4d1266597c ("mfd: ab8500: Drop debugfs module") removes the config AB8500_DEBUG in drivers/mfd/Kconfig, but missed a reference to this config in include/linux/mfd/abx500/ab8500.h. The functions ab8500_dump_all_banks() and ab8500_debug_register_interrupt() in the ab8500 header, previously with definitions conditioned on AB8500_DEBUG, are now completely needless to define and handle at all. The function ab8500_debug_register_interrupt() is not used at all and can just be removed. The function ab8500_dump_all_banks() is just registered in the abx500_ops struct in the dump_all_banks field, but this is then not further referenced anywhere else at all. So, safely drop the dump_all_banks field from abx500_ops and delete the ab8500_dump_all_banks() definition. Signed-off-by: Lukas Bulwahn Reviewed-by: Linus Walleij --- Lee, please pick this minor clean-up patch. v1: https://lore.kernel.org/all/20220311145209.17346-1-lukas.bulwahn@gmail.com/ v1 -> v2: - leave "," in as requested in https://lore.kernel.org/all/Yi8BtWlhWjiUOADk@google.com/ - add Reviewed-by tag from Linus W. from https://lore.kernel.org/all/CACRpkdbjy2Cpzs7j6=iWw+wnJxBHkaxgcO2SOx6DeTLeF4ogPw@mail.gmail.com/ drivers/mfd/ab8500-core.c | 1 - include/linux/mfd/abx500.h | 1 - include/linux/mfd/abx500/ab8500.h | 9 --------- 3 files changed, 11 deletions(-) diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 9d9e9787d5e8..eb11caadb801 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -329,7 +329,6 @@ static struct abx500_ops ab8500_ops = { .mask_and_set_register = ab8500_mask_and_set_register, .event_registers_startup_state_get = NULL, .startup_irq_enabled = NULL, - .dump_all_banks = ab8500_dump_all_banks, }; static void ab8500_irq_lock(struct irq_data *data) diff --git a/include/linux/mfd/abx500.h b/include/linux/mfd/abx500.h index 7f07cfe44753..507e3d2f062f 100644 --- a/include/linux/mfd/abx500.h +++ b/include/linux/mfd/abx500.h @@ -63,7 +63,6 @@ struct abx500_ops { int (*mask_and_set_register) (struct device *, u8, u8, u8, u8); int (*event_registers_startup_state_get) (struct device *, u8 *); int (*startup_irq_enabled) (struct device *, unsigned int); - void (*dump_all_banks) (struct device *); }; int abx500_register_ops(struct device *core_dev, struct abx500_ops *ops); diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 302a330c5c84..42fd5da7d8a7 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h @@ -503,13 +503,4 @@ static inline int is_ab9540_2p0_or_earlier(struct ab8500 *ab) void ab8500_override_turn_on_stat(u8 mask, u8 set); -#ifdef CONFIG_AB8500_DEBUG -extern int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); -void ab8500_dump_all_banks(struct device *dev); -void ab8500_debug_register_interrupt(int line); -#else -static inline void ab8500_dump_all_banks(struct device *dev) {} -static inline void ab8500_debug_register_interrupt(int line) {} -#endif - #endif /* MFD_AB8500_H */ -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel