From patchwork Wed Oct 28 22:29:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11863911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B859C388F7 for ; Wed, 28 Oct 2020 22:43:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F2F820728 for ; Wed, 28 Oct 2020 22:43:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="zpdX/t0Z"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="RfZYkWDk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F2F820728 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xH0bIdSNfyNKbIG/JnXyv1AG2ZgTY6DaQuaZnvPu678=; b=zpdX/t0ZXTAdanj2/db54J886P V8gG/wdxRFLJamkru7gg+UeMu2LbGjJFfkA9BHd5bkVM7ClHOvrlNMeoUWIWmpkv5BXb72uIwhyee KBgI1GOO1wP9mRKFirrM7dTpmYmc7cLcSk7+BDc/PT2RwjSy0qY1A6pegndIZLhrENuqkL4uIkoDf D6OgVFYevlCt23lUzmNqsnP5JoLGV8ZZXwLdp2pBP6LKcLwLOYc+L51AaLqYpBkpCSyF8v6gK6V4d kxJJIyUIuAnXaz9JI3jlzPjjZN9br/kefiDwJJem3ykKBZ4qmG1lrM3yi/MaJ+Vr4iZZfXIqyp3Fc sarUi4Aw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXu9Z-0001Qb-9q; Wed, 28 Oct 2020 22:42:50 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXtzi-0005js-Ei; Wed, 28 Oct 2020 22:32:39 +0000 Received: from kozik-lap.proceq-device.com (unknown [194.230.155.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 35BF720720; Wed, 28 Oct 2020 22:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603924357; bh=zdRGMRVPKz9yuSK0z14f5hzpN6zstW986VAYTBfkvEs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RfZYkWDkx++Ul+9GNRrNme4cHkWmu88+PBhjR2mrCidIpiD0LwtSa/2N18C9UfXX6 NCz/LW2EmpBMI0T0ekS/YcnEQYrYzOnG4PbGoWETyKATaz1gqriHH2o4Kt/OLSl4Uc sXDDgGBacz+5GObB5a3o9nl+zzXNdYqXUJkErexc= From: Krzysztof Kozlowski To: Lee Jones , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Chen-Yu Tsai , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Nicolas Saenz Julienne , Support Opensource , Andy Shevchenko , Milo Kim , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Tony Lindgren , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org Subject: [RESEND PATCH 27/42] mfd: sec: use PLATFORM_DEVID_NONE Date: Wed, 28 Oct 2020 23:29:54 +0100 Message-Id: <20201028223009.369824-27-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201028223009.369824-1-krzk@kernel.org> References: <20201028223009.369824-1-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201028_183238_689984_FE4BF6BB X-CRM114-Status: GOOD ( 14.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 95473ff9bb4b..7bfab43b455e 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -457,8 +457,8 @@ static int sec_pmic_probe(struct i2c_client *i2c, sec_pmic->device_type); return -ENODEV; } - ret = devm_mfd_add_devices(sec_pmic->dev, -1, sec_devs, num_sec_devs, - NULL, 0, NULL); + ret = devm_mfd_add_devices(sec_pmic->dev, PLATFORM_DEVID_NONE, + sec_devs, num_sec_devs, NULL, 0, NULL); if (ret) return ret;