Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11817406rwl; Tue, 3 Jan 2023 05:17:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXvQBTpkkkBWKspHBlwzXr4g5Lh1s2S3HaIHsu1J4j8dqz6r0opRW9zg3d0lj/sDTpgLshdr X-Received: by 2002:a05:6a00:1d8e:b0:575:6a68:65f8 with SMTP id z14-20020a056a001d8e00b005756a6865f8mr46920102pfw.18.1672751832755; Tue, 03 Jan 2023 05:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672751832; cv=none; d=google.com; s=arc-20160816; b=Pfx2ybr/Nuy3/t/pm+z58znWWtVRXg+kpSWEn877cpvrNiMC/gZT6G9O39Gd9nt/Fo moGJ7UNeVQOkW2x9fJhvkrSIrsSNrtrOACc23QAKYNkDGwvjnD14JfxL+FLpknFa2jcV 4ZSgN0N5J9AkZwN3lAjKAM27MHUCvxMRkiLBuv179lysjUlILHlNaC71eU2oxbODP4mF twtRNUXLqnuQkFvokrQzy5arNtf86NqMsYjSKNQlQCufBuEvWbASeKL38gYNdtfEoc9R yBHPm7zgomPDp5QlRxJin0Vv2WTEPXCV6r4oBVONSiOf/nQoJDUUonKUW8xrKlG4y7Qs iPoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=t01MhE4mNgM5sHlz1lVIZJAYFzMiWDkEJ+tlKav/9LU=; b=QsQk/Uc6aXoO/pPYvI0ms7qy4i9G6rbRibUPtDj6N5bSg/a30mr0+hQfSV77kHvkN1 wMCpJROJKJJP/XdG7swc1pIAhL729uOCrQGRx8NOqjdXfHDP6WIX7F7bjhfZpRSZYOx6 a0xxRWzRptmoVrt4ZC1x7MFgb8aHn2RigoU1/npEJgSUokGCd3Er1qid3YsliuSBlnZz YzLiNfoaDed3RaY+pGUbgBVWamgH06OzDIngm/3hsawokJmn3kzUZFxP7GlMKiTc6QUx gNN+OsaMpVBcH8DTRnzC2qM452Czur05ZR8/JNFqMDS9BVZLXWuK5CuKRD+x1rYDhI3V rOvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U2fEygDP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a056a00198e00b0057466de8ba2si34796517pfl.338.2023.01.03.05.17.03; Tue, 03 Jan 2023 05:17:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U2fEygDP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237653AbjACNMg (ORCPT + 61 others); Tue, 3 Jan 2023 08:12:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbjACNMe (ORCPT ); Tue, 3 Jan 2023 08:12:34 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F0FF5B4; Tue, 3 Jan 2023 05:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672751553; x=1704287553; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=apcGmjYq/qVMK/WjGsO3bG5bvbvbn9MDx/JXtx/ypL0=; b=U2fEygDPK5x4NNFMF3D9QNJIFtw+D6co/3p2bLe5WRitJR5kvR2sBAbj 3cm6uh3XNXyX7m9bv4gkeVErjIOrlg73CbzvxfGk1siOgIb8ab4PKWoSM yG9AJoSmlre/PV0Ca/s2nfvm7QRfs4n7asNsnrpeT2KIwmlPtJYcb1nJO 1xXOEqj42PP1W4J8BtyaWh1asMSp7PBsFbIIB5bNDD+XW+KuhfuBYSedS uEWlG1Iu8tXlaAxZStvaUL8j5tue0YGH8MEfemv5Qopw8bI9USDWAM//8 Myqr5z3ex4CQpDP6fpImzek8uQ4A+KtuHXPTWICrMIjw3p0dLypS8hu6M Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="320367231" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="320367231" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 05:12:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="654781130" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="654781130" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 03 Jan 2023 05:12:28 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 70377162; Tue, 3 Jan 2023 15:13:00 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Gene Chen , linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Pavel Machek , Lee Jones , Matthias Brugger , Sean Wang , Kurt Kanzenbach , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH v4 00/11] leds: deduplicate led_init_default_state_get() Date: Tue, 3 Jan 2023 15:12:45 +0200 Message-Id: <20230103131256.33894-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are several users of LED framework that reimplement the functionality of led_init_default_state_get(). In order to deduplicate them move the declaration to the global header (patch 2) and convert users (patche 3-11). Changelog v4: - added tags to patches 4, 5, 6, and 7 (Florian, AngeloGioacchino) - resent with Lee included in the Cc list (Lee) Changelog v3: - added tag to patch 11 (Kurt) - Cc'ed to Lee, who might help with LED subsystem maintenance Changelog v2: - added missed patch 2 and hence make it the series - appended tag to patch 7 - new patch 1 Andy Shevchenko (11): leds: add missing includes and forward declarations in leds.h leds: Move led_init_default_state_get() to the global header leds: an30259a: Get rid of custom led_init_default_state_get() leds: bcm6328: Get rid of custom led_init_default_state_get() leds: bcm6358: Get rid of custom led_init_default_state_get() leds: mt6323: Get rid of custom led_init_default_state_get() leds: mt6360: Get rid of custom led_init_default_state_get() leds: pca955x: Get rid of custom led_init_default_state_get() leds: pm8058: Get rid of custom led_init_default_state_get() leds: syscon: Get rid of custom led_init_default_state_get() net: dsa: hellcreek: Get rid of custom led_init_default_state_get() drivers/leds/flash/leds-mt6360.c | 38 +++-------------- drivers/leds/leds-an30259a.c | 21 ++-------- drivers/leds/leds-bcm6328.c | 49 +++++++++++----------- drivers/leds/leds-bcm6358.c | 32 +++++++------- drivers/leds/leds-mt6323.c | 30 ++++++------- drivers/leds/leds-pca955x.c | 26 +++--------- drivers/leds/leds-pm8058.c | 29 ++++++------- drivers/leds/leds-syscon.c | 49 ++++++++++------------ drivers/leds/leds.h | 1 - drivers/net/dsa/hirschmann/hellcreek_ptp.c | 45 ++++++++++---------- include/linux/leds.h | 15 ++++--- 11 files changed, 143 insertions(+), 192 deletions(-) -- 2.35.1