From patchwork Wed Oct 28 22:29:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11863867 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 0EF3AC4363A for ; Wed, 28 Oct 2020 22:36:35 +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 8248E20725 for ; Wed, 28 Oct 2020 22:36:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FL+PUfJN"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="kkOBr0OE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8248E20725 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=zEd8BTMngI+wpSGNtf2BBRTKGaa7AHFz/B39U7A+ato=; b=FL+PUfJNzyrEIgVTS82qm/xjIs Df6nkkjStJF4rci41YQH9gHrNnMr7o3X0XSGXQxHAMd95L7pOK6f9zBSlG0g6LdgeQgloFDOKoKHV qZ57d21NJo4Lw1/vwZYv6xRaoPaD3GZTsvs/8mbezxgL7uNMgR/122jZJxRBw49xGD5eEp98MwK1r gsCfXPJONlaf+hbFrQ4/YkEkc81bASwUug/G8JAyBGDsqvj8xmG+wFl+Mwf5ROPb84uiaKOs1VTMZ tAp5ZKIRcS54Q2YtAetvyCAHTzMI9ECrNpm/+RirDD8qbWOBEX1d/uCAzI5LpXne+5uFkvRwH0zg2 4Vg5ci4A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXu2f-0006t0-Mr; Wed, 28 Oct 2020 22:35:41 +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 1kXtyg-0005Ku-OK; Wed, 28 Oct 2020 22:31:37 +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 BDE8120724; Wed, 28 Oct 2020 22:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603924292; bh=bAzQYXPPSF1YQMJRkip+nRq3EjwY9NYLDzxEihLOUV8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kkOBr0OEQzTTynRTwofE/ZNcVU1OacpfiI1wCSVQ+8fE69vj/75t8I/hzgfm7kfGV htL50WNdXKcBm0rrJdsxT0yZ7GlBF/v/E14pecIUn4FusFvE//EJT7cUBVf087rV1c Ru9UUPGPEbTO9D81X85WiWiknXGtGILeER1jSIPA= 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 15/42] mfd: max14577: use PLATFORM_DEVID_NONE Date: Wed, 28 Oct 2020 23:29:42 +0100 Message-Id: <20201028223009.369824-15-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_183135_012430_C933A27A X-CRM114-Status: GOOD ( 14.98 ) 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 Acked-by: Chanwoo Choi --- drivers/mfd/max14577.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index be185e9d5f16..93df79748a45 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -445,7 +445,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c, goto err_max77836; } - ret = mfd_add_devices(max14577->dev, -1, mfd_devs, + ret = mfd_add_devices(max14577->dev, PLATFORM_DEVID_NONE, mfd_devs, mfd_devs_size, NULL, 0, NULL); if (ret < 0) goto err_mfd;