From patchwork Mon Sep 21 20:49:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295528 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 73F01C41604 for ; Mon, 21 Sep 2020 20:50:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 257ED23447 for ; Mon, 21 Sep 2020 20:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721431; bh=597brXyKYL9knRl5IXCbOkwWT5omN1r2wldc4AeP01U=; h=From:To:Subject:Date:List-ID:From; b=ohV4ot2CJUHituIqomYYkE3ZSUUblqQ89AS+g8djoy+W7TsL5RsNUlSojuAsRviKL 2NJ5tGK1ylIotHRG4DIgDy1S4DD7+T37bRNb5JW4uQF7emArKlCqqWrY0Aje2KlLHq lSmsPrSpVrTwfxxoFBUqmLt3QTypIJgBCEGclQ5E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbgIUUua (ORCPT ); Mon, 21 Sep 2020 16:50:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:55928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUua (ORCPT ); Mon, 21 Sep 2020 16:50:30 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 83C24216C4; Mon, 21 Sep 2020 20:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721429; bh=597brXyKYL9knRl5IXCbOkwWT5omN1r2wldc4AeP01U=; h=From:To:Subject:Date:From; b=BzSIY24V5jzxPB3N1CYINObIL3OJfd86izbjWTwoq2NXiuBa73dXq8JeJYjr52I4W dliiYx+ltUkvOvmSWqMCnJ1KVYIJL0WbE+eVv7ekpf+hkEE1Ftp239JMEFKWmr3pxR 9luKEPfvy+Tne5gwf9cABPAKIbFoZKAkInkKoH8Q= 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 , Sangbeom Kim , 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: [PATCH 01/42] mfd: arizona: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:35 +0200 Message-Id: <20200921205016.20461-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/arizona-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 000cb82023e3..bf48372db605 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -1043,8 +1043,9 @@ int arizona_dev_init(struct arizona *arizona) case CS47L24: break; /* No LDO1 regulator */ default: - ret = mfd_add_devices(arizona->dev, -1, early_devs, - ARRAY_SIZE(early_devs), NULL, 0, NULL); + ret = mfd_add_devices(arizona->dev, PLATFORM_DEVID_NONE, + early_devs, ARRAY_SIZE(early_devs), + NULL, 0, NULL); if (ret != 0) { dev_err(dev, "Failed to add early children: %d\n", ret); return ret; From patchwork Mon Sep 21 20:49:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256517 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 65621C4363C for ; Mon, 21 Sep 2020 20:50:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1221722B2D for ; Mon, 21 Sep 2020 20:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721438; bh=9uOe8D3kT7BC8os13k6ok5OVNiP7ajeOe0+DIwsxGR4=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=b2Ldt6eVS1EU3/FAilwL4l70G1l5Qu5p8cu7Elp5zUBIPFHuY4rPH7FUL/qoQ3PuV 9fbp2+A0NIZwpRTIJIc9wUTJ8JQllw5U5uof9W7tE7sdhkcPcPWORGFr1iRbE7CMNi c4LKjDuOah2WCDUP2F2v/Xy4NAvx2HpJj167/fSg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727269AbgIUUuh (ORCPT ); Mon, 21 Sep 2020 16:50:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:56076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUuh (ORCPT ); Mon, 21 Sep 2020 16:50:37 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 68BF920866; Mon, 21 Sep 2020 20:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721436; bh=9uOe8D3kT7BC8os13k6ok5OVNiP7ajeOe0+DIwsxGR4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bRUGhCi/7/ic+GiS48F9H8sB5n536kRHoWyyajCIGy5hI0FrKrdfsh+1WkRPXf4e/ 7CjU6GZFsRVhB38HStLqgJEkI0PvrcXY+Z5Xt+kmTJkBOhgL4yadgClPQ0A6tOODuB Mjqjh+1HfQrJCnBSW2YH3I7Cd9yimmZ1xAqwaFuI= 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 , Sangbeom Kim , 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: [PATCH 02/42] mfd: as3711: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:36 +0200 Message-Id: <20200921205016.20461-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/as3711.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/as3711.c b/drivers/mfd/as3711.c index 3adaec6c37df..5933f322ad52 100644 --- a/drivers/mfd/as3711.c +++ b/drivers/mfd/as3711.c @@ -184,8 +184,9 @@ static int as3711_i2c_probe(struct i2c_client *client, as3711_subdevs[AS3711_BACKLIGHT].pdata_size = 0; } - ret = devm_mfd_add_devices(as3711->dev, -1, as3711_subdevs, - ARRAY_SIZE(as3711_subdevs), NULL, 0, NULL); + ret = devm_mfd_add_devices(as3711->dev, PLATFORM_DEVID_NONE, + as3711_subdevs, ARRAY_SIZE(as3711_subdevs), + NULL, 0, NULL); if (ret < 0) dev_err(&client->dev, "add mfd devices failed: %d\n", ret); From patchwork Mon Sep 21 20:49:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295527 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 B662BC4363C for ; Mon, 21 Sep 2020 20:50:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 61621235F8 for ; Mon, 21 Sep 2020 20:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721444; bh=/hppmSj9+qmCoOYyMkdoXFJk4J3/tZluv1WTL90UUZ0=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=fEHkUlslq/jAnou6hBVy0UyfqLAhTe72J/WuQO7G3lSPABaFJuQJfwXCRuJH+RjuN lEQtWYgFPbx2tqUccnLAGsfiJ3UuIVUTfHCtn30cxjlGwiFzx0AAafoq/LOR8cqTF0 hVtlBoXNxI5ZFZOL1l/Hihsx7QLETRLtmjRO/qx8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727131AbgIUUun (ORCPT ); Mon, 21 Sep 2020 16:50:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:56194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUun (ORCPT ); Mon, 21 Sep 2020 16:50:43 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 F3E8923447; Mon, 21 Sep 2020 20:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721443; bh=/hppmSj9+qmCoOYyMkdoXFJk4J3/tZluv1WTL90UUZ0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=1GdoondrF25sqoyVZXlcRguj23DVZQT8qI+irk9W31VX91se/nI8U9zssb6RBjkqm F3apRGONnCcz5390EUxw7F4b3cecTf0bRfIr7daxNZrar8aClgk1qPVB9lcvaTxvIk PEDmgTvuYcqqpR/UGaK+ToaeImbEST77fLiZoFso= 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 , Sangbeom Kim , 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: [PATCH 03/42] mfd: as3722: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:37 +0200 Message-Id: <20200921205016.20461-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/as3722.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/as3722.c b/drivers/mfd/as3722.c index 59dfeff71592..b2151f56f3d2 100644 --- a/drivers/mfd/as3722.c +++ b/drivers/mfd/as3722.c @@ -397,7 +397,7 @@ static int as3722_i2c_probe(struct i2c_client *i2c, return ret; } - ret = devm_mfd_add_devices(&i2c->dev, -1, as3722_devs, + ret = devm_mfd_add_devices(&i2c->dev, PLATFORM_DEVID_NONE, as3722_devs, ARRAY_SIZE(as3722_devs), NULL, 0, regmap_irq_get_domain(as3722->irq_data)); if (ret) { From patchwork Mon Sep 21 20:49:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256516 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 9C787C46466 for ; Mon, 21 Sep 2020 20:50:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4AD3B235FC for ; Mon, 21 Sep 2020 20:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721450; bh=/gWWkylkHfIbxK6ZcSx+7gP9p23uKbA6n6T1bMkuJXU=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=mOInrmKAG46SbWP5wtp+Rr0JheX4dWnMkO0VqvcKtEotIDrTqkJLRYod8fdcxB1jG i3SEm8tauXUWCLUerR83nrRszDpbHF01Kfp843oJcCPIxbVHmZ/gy1xZd2bq5AIKOd eWe7mAfeEokViLATN2nJvlFpcSX4sJy3nt9+Japg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728032AbgIUUut (ORCPT ); Mon, 21 Sep 2020 16:50:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:56346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUut (ORCPT ); Mon, 21 Sep 2020 16:50:49 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 92418235F9; Mon, 21 Sep 2020 20:50:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721449; bh=/gWWkylkHfIbxK6ZcSx+7gP9p23uKbA6n6T1bMkuJXU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Oo/o0XJ8ri6z1tfhwbXHUzCto3Nj4Yb9dN6qv5DMGBdh9mVH8ZAZ5CyjUeg8iJoIN cLj4anWpPpmkRcsX3b6ELiIaDTxlQe8eLPo81dtxfk0/Q1p+4HdA4BN6kXyMuaSSfv iUZSAzenT8xkGl5Dlg1ZkPhezcz/hWCT1FEWuSE8= 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 , Sangbeom Kim , 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: [PATCH 04/42] mfd: atmel-hlcdc: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:38 +0200 Message-Id: <20200921205016.20461-4-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/atmel-hlcdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/atmel-hlcdc.c b/drivers/mfd/atmel-hlcdc.c index 3c2414ba4b01..8ba13bc6fcf8 100644 --- a/drivers/mfd/atmel-hlcdc.c +++ b/drivers/mfd/atmel-hlcdc.c @@ -129,7 +129,7 @@ static int atmel_hlcdc_probe(struct platform_device *pdev) dev_set_drvdata(dev, hlcdc); - return devm_mfd_add_devices(dev, -1, atmel_hlcdc_cells, + return devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE, atmel_hlcdc_cells, ARRAY_SIZE(atmel_hlcdc_cells), NULL, 0, NULL); } From patchwork Mon Sep 21 20:49:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295526 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 0BB14C41604 for ; Mon, 21 Sep 2020 20:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A720F2376F for ; Mon, 21 Sep 2020 20:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721456; bh=t2H99WmS5xNa6a6jSn3yIzP1ouYHephy/D89VN66aQ8=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Ou+OiNSp7GRDUdQNTVXLXmZX4MdXKMWA9VoM+3jo2pJBdAwsAgK96Sm7oHlvNfoLF LouHD4+zwmdoZW6YeSUgp62Wvp+BifZLG/IMtgipOOqD6dF3SGNxs2FcPAraB92olS awnthDIoH1tbsJhhoiE45a4iRyzgEMXptRJzHrxo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728209AbgIUUu4 (ORCPT ); Mon, 21 Sep 2020 16:50:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:56460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUuz (ORCPT ); Mon, 21 Sep 2020 16:50:55 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 9E68D235F8; Mon, 21 Sep 2020 20:50:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721455; bh=t2H99WmS5xNa6a6jSn3yIzP1ouYHephy/D89VN66aQ8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rK0JONeomru5BrEpF/7wQsFPIM4ti+ZSYdDDnunwenU5Odc4xbrPD81qH8CxCMx3o C+wDZ0OOFZ0UknszvoZKJTLpObg3GZm7cJqIjLVUqSPIC3KMBAbBedMKR7038Hx+w4 XrF0raYMNvTiVtYFZKomi1W4DVmYbgUV5VmUv9lM= 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 , Sangbeom Kim , 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: [PATCH 05/42] mfd: axp20x: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:39 +0200 Message-Id: <20200921205016.20461-5-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index aa59496e4376..70aa538a4b64 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -967,7 +967,7 @@ int axp20x_device_probe(struct axp20x_dev *axp20x) return ret; } - ret = mfd_add_devices(axp20x->dev, -1, axp20x->cells, + ret = mfd_add_devices(axp20x->dev, PLATFORM_DEVID_NONE, axp20x->cells, axp20x->nr_cells, NULL, 0, NULL); if (ret) { From patchwork Mon Sep 21 20:49:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256515 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 53164C41604 for ; Mon, 21 Sep 2020 20:51:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B76AF23787 for ; Mon, 21 Sep 2020 20:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721463; bh=vvKw17eRDLLQlVh42aKmJSQlryi7VaH9GJJw2nvfTZM=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=bPG0D187lDLgIPJ0SmX0qPGQ/83CpGgVQfLfwoYa+QIlfmYZhs9EigtEyAhSRtmtK 5fw8dzqcRoMLPwmeU5JCAdBkYo3ToWOXraPhv1PiU+k5Iwj9CoZqt71pJHiEEeFyqx MlBDfijFYU+f351YI9xv5duqpPu9LU0eCtc18VG8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbgIUUvC (ORCPT ); Mon, 21 Sep 2020 16:51:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:56600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727442AbgIUUvC (ORCPT ); Mon, 21 Sep 2020 16:51:02 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 E7ACE235FA; Mon, 21 Sep 2020 20:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721462; bh=vvKw17eRDLLQlVh42aKmJSQlryi7VaH9GJJw2nvfTZM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gK0usBgH71IEZhnR6pmLOgSi6oqzWALtql35PfdxLnLmlVlHUdaby+OvgkCS3XvQa ygqzDQ4fMfo4lUD0DOZo5RKADnsamWi6w5eH11MCBWlX7w374L7aI7x4rX2oXRPFyC szcx7QoAd4VqxW2xzm2f30vQsYcH7UTA6WSNfcYs= 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 , Sangbeom Kim , 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: [PATCH 06/42] mfd: bcm2835: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:40 +0200 Message-Id: <20200921205016.20461-6-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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: Florian Fainelli Reviewed-by: Nicolas Saenz Julienne --- drivers/mfd/bcm2835-pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/bcm2835-pm.c b/drivers/mfd/bcm2835-pm.c index 42fe67f1538e..a76014512bde 100644 --- a/drivers/mfd/bcm2835-pm.c +++ b/drivers/mfd/bcm2835-pm.c @@ -44,7 +44,7 @@ static int bcm2835_pm_probe(struct platform_device *pdev) if (IS_ERR(pm->base)) return PTR_ERR(pm->base); - ret = devm_mfd_add_devices(dev, -1, + ret = devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE, bcm2835_pm_devs, ARRAY_SIZE(bcm2835_pm_devs), NULL, 0, NULL); if (ret) @@ -60,7 +60,7 @@ static int bcm2835_pm_probe(struct platform_device *pdev) if (IS_ERR(pm->asb)) return PTR_ERR(pm->asb); - ret = devm_mfd_add_devices(dev, -1, + ret = devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE, bcm2835_power_devs, ARRAY_SIZE(bcm2835_power_devs), NULL, 0, NULL); From patchwork Mon Sep 21 20:49:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295525 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 5FA95C41604 for ; Mon, 21 Sep 2020 20:51:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2183C23787 for ; Mon, 21 Sep 2020 20:51:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721469; bh=GrcQBuUzkSCE7UvOvr0XUftHS4HEZMx37swbChp5jCo=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=qsiNI+4K0Pn2pPrfCCAVQ8AFQidNJO21rjb4Bdgbef1NSCB8wKTfvrqyIj5xStTIU waT49D3NgIrtawYBR24ZJ1iy7icXUhh55oPjQJUm/lBcNiwF/imOl4sxsFJIkAhU+u H0VOiVKlIoQi5yxJJN1Dw3Wi7rBYh5Ry4WT8U0m8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbgIUUvI (ORCPT ); Mon, 21 Sep 2020 16:51:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:56768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbgIUUvI (ORCPT ); Mon, 21 Sep 2020 16:51:08 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 8611A23718; Mon, 21 Sep 2020 20:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721467; bh=GrcQBuUzkSCE7UvOvr0XUftHS4HEZMx37swbChp5jCo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ikKAlphicMPpC2drKkw3KPtmkHQi3DzT4A1RTByNMNMNnEpkoXl3wH0e4lb4ArrJd 6fGKBc2kzqUw8jEXgGHjUTGYLldycbl6R4Ep5pSBy/5TD/NkFypyPV93TchEpqA30C tU7lpoAl5j20Hh04qJ3zEmC82/SfzJETKkjARVac= 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 , Sangbeom Kim , 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: [PATCH 07/42] mfd: bcm590xx: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:41 +0200 Message-Id: <20200921205016.20461-7-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/bcm590xx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index bfac5dc091ca..2f7186a6f6c0 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers/mfd/bcm590xx.c @@ -78,8 +78,9 @@ static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri, goto err; } - ret = devm_mfd_add_devices(&i2c_pri->dev, -1, bcm590xx_devs, - ARRAY_SIZE(bcm590xx_devs), NULL, 0, NULL); + ret = devm_mfd_add_devices(&i2c_pri->dev, PLATFORM_DEVID_NONE, + bcm590xx_devs, ARRAY_SIZE(bcm590xx_devs), + NULL, 0, NULL); if (ret < 0) { dev_err(&i2c_pri->dev, "failed to add sub-devices: %d\n", ret); goto err; From patchwork Mon Sep 21 20:49: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: 256514 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 95E0DC35257 for ; Mon, 21 Sep 2020 20:51:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5079323888 for ; Mon, 21 Sep 2020 20:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721475; bh=zb0fiXx4q88oQ4QlGImpEgmvV2wcIYbMZneDGVsL9nE=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=1w67quvQ0BHlrftL0sjNvp7InztN8EJTvES8z7bQWIctfLuB5e0B1ecTa/M5zU/cO 9zsbyeh/SLpd897v2QXbuPHovY7gAZPgLFq/8hgVqmxNNYC/asSZ5Ng2uyMR1MTQjY hVW3KB9FNx/5bPLZcZMyKIbX+2PgW1SVJss4X0Ws= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728291AbgIUUvO (ORCPT ); Mon, 21 Sep 2020 16:51:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:56900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727062AbgIUUvO (ORCPT ); Mon, 21 Sep 2020 16:51:14 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 15C1521D7A; Mon, 21 Sep 2020 20:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721473; bh=zb0fiXx4q88oQ4QlGImpEgmvV2wcIYbMZneDGVsL9nE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WeH4xWqDUbnrmfayiyVfy6f47B8JMK1omBHCn2XogiSRitB4Xm9ydtzd4levj5bHi oig/AEYU6grBcr84LjXQa+37OlcaHMtU2ws4Vr/JovJ59BNlk5NykLJRpt0YkQS5kR DaXApGlPh93oocq91VJtARDT5tb0QmzY76Xkl4xM= 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 , Sangbeom Kim , 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: [PATCH 08/42] mfd: da9055: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:42 +0200 Message-Id: <20200921205016.20461-8-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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: Adam Thomson --- drivers/mfd/da9055-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/da9055-core.c b/drivers/mfd/da9055-core.c index 6d0af8486269..ff8fe165b937 100644 --- a/drivers/mfd/da9055-core.c +++ b/drivers/mfd/da9055-core.c @@ -400,7 +400,7 @@ int da9055_device_init(struct da9055 *da9055) da9055->irq_base = regmap_irq_chip_get_base(da9055->irq_data); - ret = mfd_add_devices(da9055->dev, -1, + ret = mfd_add_devices(da9055->dev, PLATFORM_DEVID_NONE, da9055_devs, ARRAY_SIZE(da9055_devs), NULL, da9055->irq_base, NULL); if (ret) From patchwork Mon Sep 21 20:49:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295524 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 506E7C4363C for ; Mon, 21 Sep 2020 20:51:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E68F2376F for ; Mon, 21 Sep 2020 20:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721482; bh=/UVn5s6TKv7Fe31CTRFQoHHpELb0l/2EMST2zTJbsz4=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=GvWmRfEgBDAaupnKZIeeHjaupX8SKVulb9Vb9OUIAVuE+xN6KI+6qlhmpU+eS0/EX N8MFDq2P9k+yLV0qaOpsuAAJRdoNSVlZyxGiE+fXSf4pS3hNaPPLJNb4kLnTR3VnOZ FEvcLpQ3aqrt4haD3ndxyMOKVSBKdQxAAOu8gxx8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbgIUUvV (ORCPT ); Mon, 21 Sep 2020 16:51:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:57024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUvV (ORCPT ); Mon, 21 Sep 2020 16:51:21 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 A864522B2D; Mon, 21 Sep 2020 20:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721480; bh=/UVn5s6TKv7Fe31CTRFQoHHpELb0l/2EMST2zTJbsz4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=In5u7siPnNJ4MvBPNhDHVin5mWvPSYDvm4ktZjP8n0MQ1LyeTPfjnMQe8QbJcX/nr 1ZoDarv6uGRkLICVY03tSUJnuSizAxp58Iazj6IngA38BxCIIXGl6+RrkeZZvgS61L 9m6KeDLqOHoeC3L3zCAPcvfj2leO1muK3w4mIhkk= 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 , Sangbeom Kim , 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: [PATCH 09/42] mfd: da9150: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:43 +0200 Message-Id: <20200921205016.20461-9-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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: Adam Thomson --- drivers/mfd/da9150-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/da9150-core.c b/drivers/mfd/da9150-core.c index 7f0aa1e8db96..e335cf718442 100644 --- a/drivers/mfd/da9150-core.c +++ b/drivers/mfd/da9150-core.c @@ -453,7 +453,7 @@ static int da9150_probe(struct i2c_client *client, enable_irq_wake(da9150->irq); - ret = mfd_add_devices(da9150->dev, -1, da9150_devs, + ret = mfd_add_devices(da9150->dev, PLATFORM_DEVID_NONE, da9150_devs, ARRAY_SIZE(da9150_devs), NULL, da9150->irq_base, NULL); if (ret) { From patchwork Mon Sep 21 20:49:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256513 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 822C5C4363C for ; Mon, 21 Sep 2020 20:51:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3D7042388E for ; Mon, 21 Sep 2020 20:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721488; bh=kD5LZxwFlQqIhCczTyyacsX6VJTHL5cFskHXz6Jn6dk=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=FFsZq6r2A9Z5EgNAAb7XJ/3q+EUDxH80YP2cPg17886XfMDsPwEU2MuLhGyR8GEWU //zRbVZCeYDCLLlDjkbMVuI9M2wLBHRCKh5FGLKF3dVmLdikhNOHr2F00DoZa6+209 HDwEr4P6qLH0C+tcRVodWF9VugnlE5GiiWxPNXc8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728324AbgIUUv1 (ORCPT ); Mon, 21 Sep 2020 16:51:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:57170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727630AbgIUUv1 (ORCPT ); Mon, 21 Sep 2020 16:51:27 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 8608423730; Mon, 21 Sep 2020 20:51:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721487; bh=kD5LZxwFlQqIhCczTyyacsX6VJTHL5cFskHXz6Jn6dk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ogkXN71571TXekH4V9mqig56UZhnSkHj4EDSBr7Yk9opwYRGWzf5tCaHC9qNSevo5 aq3bZanC1aZxLZMDWURlym1P2WV7J9FafGmfsIK5IcWBDigL7nqTIy42n27jabGmrU hUlgp6yulHWmZV/zTCehw0+tJQ7k6psqb187dhH8= 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 , Sangbeom Kim , 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: [PATCH 10/42] mfd: intel_msic: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:44 +0200 Message-Id: <20200921205016.20461-10-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/intel_msic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/intel_msic.c b/drivers/mfd/intel_msic.c index bb24c2a07900..e9944a81dc44 100644 --- a/drivers/mfd/intel_msic.c +++ b/drivers/mfd/intel_msic.c @@ -317,8 +317,9 @@ static int intel_msic_init_devices(struct intel_msic *msic) if (!pdata->irq[i]) continue; - ret = mfd_add_devices(&pdev->dev, -1, &msic_devs[i], 1, NULL, - pdata->irq[i], NULL); + ret = mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, + &msic_devs[i], 1, NULL, pdata->irq[i], + NULL); if (ret) goto fail; } From patchwork Mon Sep 21 20:49:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295523 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 9389FC4363C for ; Mon, 21 Sep 2020 20:51:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 596D5238A0 for ; Mon, 21 Sep 2020 20:51:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721497; bh=hrgFvyshBezs8X+Ou7RBhm3XKexhvJO0ARtPEgI3lko=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=q8Ktybf5bhKG0ZcsjnMewvOQMwK67OzztKN2WdUe72pLNJiJ9zZLJe5WlnPf+pSrW gbdcQQjbJtAUXsyK0F8mydyb6mr/j9CCb0VSz3/JhgIT5uVgw/hiiicffM1G7IZXFH WrD3akmRRaLOgCXPuwmfEIFiKYMSl+FfqkTT5/tQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727630AbgIUUve (ORCPT ); Mon, 21 Sep 2020 16:51:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:57286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUvd (ORCPT ); Mon, 21 Sep 2020 16:51:33 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 7EC6523888; Mon, 21 Sep 2020 20:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721493; bh=hrgFvyshBezs8X+Ou7RBhm3XKexhvJO0ARtPEgI3lko=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p27k5Q6LDoPhshFvS3u9vH5/zm9XpmbEHj6SAUI0j0jstWoOTnR6Xu3I2LHzDB9wi nxi1x0P1KZaiY3XBNb3QpIg71yakwz2lqMuUV7KmkjzXtK3gzXAR5Nfi5kS2YNiJKw WnKjztnG+2Fy+17uFs5m37DfvJw0N/aVYnp2BzoM= 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 , Sangbeom Kim , 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: [PATCH 11/42] mfd: intel_soc_pmic: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:45 +0200 Message-Id: <20200921205016.20461-11-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/intel_soc_pmic_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c index ddd64f9e3341..b7bbe58dedcc 100644 --- a/drivers/mfd/intel_soc_pmic_core.c +++ b/drivers/mfd/intel_soc_pmic_core.c @@ -86,7 +86,7 @@ static int intel_soc_pmic_i2c_probe(struct i2c_client *i2c, /* Add lookup table for crc-pwm */ pwm_add_table(crc_pwm_lookup, ARRAY_SIZE(crc_pwm_lookup)); - ret = mfd_add_devices(dev, -1, config->cell_dev, + ret = mfd_add_devices(dev, PLATFORM_DEVID_NONE, config->cell_dev, config->n_cell_devs, NULL, 0, regmap_irq_get_domain(pmic->irq_chip_data)); if (ret) From patchwork Mon Sep 21 20:49:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256512 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 C9AB0C4363C for ; Mon, 21 Sep 2020 20:51:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 98B09238A1 for ; Mon, 21 Sep 2020 20:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721503; bh=r6W/NCKCrSOS8pg+sBm0gaxcT+K5fqsZ/LKE3XOavyQ=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=EjUs815pcgmDT58bOvcZRE8qu66Q2N1VT51gwO2S0mMXlYTGREh46G1eVYKKrW8Gm YF9so3gqagt8OIylkv1ix1uHaDJRrCQv4UWu40uwbMzKAS7fsQIZg7upi6WtHT18it 3MRDWuG3D1NpKqok96SfoK9NQHlWwohJZIbhbeFI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726427AbgIUUvk (ORCPT ); Mon, 21 Sep 2020 16:51:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:57388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727302AbgIUUvj (ORCPT ); Mon, 21 Sep 2020 16:51:39 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 8FB5A2389E; Mon, 21 Sep 2020 20:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721499; bh=r6W/NCKCrSOS8pg+sBm0gaxcT+K5fqsZ/LKE3XOavyQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=irKdLI/ptWRCC4g1ksZf3X84XgcgFS9fJJ/M/jkx1FmkhNC/KRbyudqwntNIsQ6aL YwgID0wJpVHQcnaB5SZ0FM6IKhe9U85vZ/dEd1SO1oc2EyqzsOa7Akf0fdoJO2ezmo TxSVBnNYn6BeRNvgBrWwpiLUf75suZKTqF66MapY= 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 , Sangbeom Kim , 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: [PATCH 12/42] mfd: kempld: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:46 +0200 Message-Id: <20200921205016.20461-12-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/kempld-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c index 52bec01149e5..71d484f31f04 100644 --- a/drivers/mfd/kempld-core.c +++ b/drivers/mfd/kempld-core.c @@ -105,7 +105,8 @@ static int kempld_register_cells_generic(struct kempld_device_data *pld) if (pld->feature_mask & KEMPLD_FEATURE_MASK_UART) devs[i++].name = kempld_dev_names[KEMPLD_UART]; - return mfd_add_devices(pld->dev, -1, devs, i, NULL, 0, NULL); + return mfd_add_devices(pld->dev, PLATFORM_DEVID_NONE, devs, i, NULL, 0, + NULL); } static struct resource kempld_ioresource = { From patchwork Mon Sep 21 20:49:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295522 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 5B001C41604 for ; Mon, 21 Sep 2020 20:51:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17F48238E6 for ; Mon, 21 Sep 2020 20:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721506; bh=pRyRUXadaSrLiPBS4l8n4CpeSotECZkHr/q+CxkrM0Q=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=e89p1Qfs/Xl2jMGz1HRX4NSzjQa9VbbzylTbX55Ih3K6u9Vo8h6aH0T3p0rnRhTYC N3FNlI/nCCR332AG8+H50gP+GUsYS2QurmsE3JtuT2g9AqIk3YTLGTdrcQ8lPygOf3 NsamaBodYlMjdLJQovsWlgODSfA4b5P6MwlvFzUo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728373AbgIUUvp (ORCPT ); Mon, 21 Sep 2020 16:51:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:57500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbgIUUvp (ORCPT ); Mon, 21 Sep 2020 16:51:45 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 9E6E92389F; Mon, 21 Sep 2020 20:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721504; bh=pRyRUXadaSrLiPBS4l8n4CpeSotECZkHr/q+CxkrM0Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r8vuxF8R4042joYRWz6UKlYF/goi4vXuqJ2DRhdL/WJIoJhSpp6VrAqE7DWvFEbWx jx2t++FSCGa4cupOeksMx2Fav4T9mjbPiVMxwpYx+EjM/1L5g3Cvtn29WjIAuZOUsT OzkcuifluI+GpdoUliI8VXrYaRxdIct5RiLr+r4k= 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 , Sangbeom Kim , 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: [PATCH 13/42] mfd: lp8788: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:47 +0200 Message-Id: <20200921205016.20461-13-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/lp8788.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/lp8788.c b/drivers/mfd/lp8788.c index 768d556b3fe9..8abd98bb1d9d 100644 --- a/drivers/mfd/lp8788.c +++ b/drivers/mfd/lp8788.c @@ -195,7 +195,7 @@ static int lp8788_probe(struct i2c_client *cl, const struct i2c_device_id *id) if (ret) return ret; - return mfd_add_devices(lp->dev, -1, lp8788_devs, + return mfd_add_devices(lp->dev, PLATFORM_DEVID_NONE, lp8788_devs, ARRAY_SIZE(lp8788_devs), NULL, 0, NULL); } From patchwork Mon Sep 21 20:49:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256511 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 3589AC4363C for ; Mon, 21 Sep 2020 20:51:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB557238E6 for ; Mon, 21 Sep 2020 20:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721512; bh=aqWptJpi754Tkq81g5aJ8LQnjJsO90yXBe1KJKIzaHU=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=qP817q/AdVl1AOqXnG9xLMQgexRLY6aOd402fr/ffhBxhP95KOCzHrqj+VRj9BSQP EflnT5VaQVwLlxtZ3D8Tm+Okwo1rBqjLw6kZs8D0jF1YFMmm9hZWwm0wttc7DNvh0q uv95uj02TOYOsTgXvsuR9SlfociGaCVigipr7Gx0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728396AbgIUUvv (ORCPT ); Mon, 21 Sep 2020 16:51:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:57644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbgIUUvu (ORCPT ); Mon, 21 Sep 2020 16:51:50 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 4B5DB238A0; Mon, 21 Sep 2020 20:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721510; bh=aqWptJpi754Tkq81g5aJ8LQnjJsO90yXBe1KJKIzaHU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mA4X5ppw0Kf1v6pMl3bwH3CY+GFFVmAfoRLoZa4IM0j1JeAKU5b9xee6/La+JhpXm BYOVggfJUGATEpowKOQ8zyEIQ4krzS1M3C7vPWaPUcChKBquF4FBTKOva93Ep5e4p+ lpRuL5Fmy1OEBtMxr+cQl3jwT6GlQ/UFes+ZJFNw= 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 , Sangbeom Kim , 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: [PATCH 14/42] mfd: lp3943: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:48 +0200 Message-Id: <20200921205016.20461-14-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/lp3943.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/lp3943.c b/drivers/mfd/lp3943.c index 13cb89be3d66..3e5d7336f59b 100644 --- a/drivers/mfd/lp3943.c +++ b/drivers/mfd/lp3943.c @@ -120,9 +120,8 @@ static int lp3943_probe(struct i2c_client *cl, const struct i2c_device_id *id) lp3943->mux_cfg = lp3943_mux_cfg; i2c_set_clientdata(cl, lp3943); - return devm_mfd_add_devices(dev, -1, lp3943_devs, - ARRAY_SIZE(lp3943_devs), - NULL, 0, NULL); + return devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE, lp3943_devs, + ARRAY_SIZE(lp3943_devs), NULL, 0, NULL); } static const struct i2c_device_id lp3943_ids[] = { From patchwork Mon Sep 21 20:49:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295521 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 54ACDC4363C for ; Mon, 21 Sep 2020 20:51:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F564238D7 for ; Mon, 21 Sep 2020 20:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721518; bh=s3lYeJolGTVwOoaBPA0aqpWf85mxmbshnqYq80JIl3s=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=PtW4vD+FiBxZmQa/kHVctFtwzVrqJbQgU03P6OK9KwJgZe8SeTjNhtPgutNffhZVv jRk224V7zzBptvezMxRYPczODeF1Or6hBAmhBfUj5Bo/uXHqrvMnPgpMbpKY0ys3Ov +NrkXKMo/uo9tIdAR+gVifKFznNW7X4KWagGS+fM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727302AbgIUUv5 (ORCPT ); Mon, 21 Sep 2020 16:51:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:57790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbgIUUv5 (ORCPT ); Mon, 21 Sep 2020 16:51:57 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 E53A82388E; Mon, 21 Sep 2020 20:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721516; bh=s3lYeJolGTVwOoaBPA0aqpWf85mxmbshnqYq80JIl3s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bz8HYfcInmU/KgG2mw/AlR8zQ7YftYuRwaZTmYTyz0gGZe4JTOGsHTWaHSgghYAb3 lCuZC9JtzHwzXAyh7urgZr67tTGkjTxOC7EAtHEBdgvCXSPfgHH+iZMMadWMjRJCWu TU4TZeCMkwcwnFbraBPgLT/uZNPeSFhfXuKViUKc= 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 , Sangbeom Kim , 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: [PATCH 15/42] mfd: max14577: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:49 +0200 Message-Id: <20200921205016.20461-15-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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; From patchwork Mon Sep 21 20:49:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256510 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 AFFE6C4363C for ; Mon, 21 Sep 2020 20:52:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 75DB3238E2 for ; Mon, 21 Sep 2020 20:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721527; bh=tAFDqr7IEoU7c1wzHINzdyl2jrFWAgx6ffoopawJ5wo=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=g2EScsuUqB3FQ0RYCILp1aDCJy+Q4TS6ciRwA1fOzsqa4ZLge5PkMj7jQY1fxnQ19 uQNPGKH3b8/Xxs2XSUL8OuR7iNxQzHgL+tUSv0lw7TyXmKWqpFFv3i5KJYkBXV3b9y 3Qdi7I/DjbCDRX/1qbNdjTLyg8XlDY3qrkv/A/4w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgIUUwE (ORCPT ); Mon, 21 Sep 2020 16:52:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:57902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIUUwD (ORCPT ); Mon, 21 Sep 2020 16:52:03 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 813342311D; Mon, 21 Sep 2020 20:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721523; bh=tAFDqr7IEoU7c1wzHINzdyl2jrFWAgx6ffoopawJ5wo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Zhmxju2mUywDe7uEiOeONti6n2KRSCjjst4m3tUKNuwYgVbBILn5econdnJmsxnSk h3r2D3h9pGtpFVYQi6kXwRqx7eEZDOJC6vAXpeYB1L5ODTYqDu6Qd7hd3GZ8iAmAiO ag2r64NSn950toG0Mm99VDdCEdwtPNqanpadRxSQ= 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 , Sangbeom Kim , 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: [PATCH 16/42] mfd: max77686: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:50 +0200 Message-Id: <20200921205016.20461-16-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/max77686.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index 71faf503844b..1f26d00fdd37 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c @@ -217,8 +217,8 @@ static int max77686_i2c_probe(struct i2c_client *i2c) return ret; } - ret = devm_mfd_add_devices(max77686->dev, -1, cells, n_devs, NULL, - 0, NULL); + ret = devm_mfd_add_devices(max77686->dev, PLATFORM_DEVID_NONE, cells, + n_devs, NULL, 0, NULL); if (ret < 0) { dev_err(&i2c->dev, "failed to add MFD devices: %d\n", ret); return ret; From patchwork Mon Sep 21 20:49:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295520 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 DA85EC41604 for ; Mon, 21 Sep 2020 20:52:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 997882395B for ; Mon, 21 Sep 2020 20:52:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721530; bh=pbcgfuTK0gE2hDX1Xpk5L4fGTcHFSQwbdfptaLaUxiU=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=WPpG2ElX3QBnGpOeGCRjVKjIvIR2MXyo4N7G+7KCM0538VfGbNCUM2C8qzgZpPBfk xdzZ08YrB+gxuTpAHEH99lYdtDVllz5jdOfXHuzShVGeJCMtSauPBslp81o4sUHy8h IyOchBDKqn+gDBEc+VP+1DfL9aJIKL0pTvDKjeos= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728245AbgIUUwK (ORCPT ); Mon, 21 Sep 2020 16:52:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:58008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIUUwJ (ORCPT ); Mon, 21 Sep 2020 16:52:09 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 D90D4238E6; Mon, 21 Sep 2020 20:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721529; bh=pbcgfuTK0gE2hDX1Xpk5L4fGTcHFSQwbdfptaLaUxiU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oKddZ8TUUS/Cpc3sHI658VFip6uCqQBWUiwkVEfqP1p14ywNDi1srZ3VEHmPcbgWA mI2Bh2hPL1bm1DbnXSXJT517KzPIn3/XVKlJZBCtG73UX6rglq4RXoupAAXcawXLe1 F4mjsft5BekwTZhR9Fgry4UlFJZ7+/cGRLi0+Th0= 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 , Sangbeom Kim , 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: [PATCH 17/42] mfd: max77693: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:51 +0200 Message-Id: <20200921205016.20461-17-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/max77693.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c index 596ed85cab3b..02fbdf0a66c3 100644 --- a/drivers/mfd/max77693.c +++ b/drivers/mfd/max77693.c @@ -274,7 +274,7 @@ static int max77693_i2c_probe(struct i2c_client *i2c, pm_runtime_set_active(max77693->dev); - ret = mfd_add_devices(max77693->dev, -1, max77693_devs, + ret = mfd_add_devices(max77693->dev, PLATFORM_DEVID_NONE, max77693_devs, ARRAY_SIZE(max77693_devs), NULL, 0, NULL); if (ret < 0) goto err_mfd; From patchwork Mon Sep 21 20:49:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256509 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 50EB4C4363C for ; Mon, 21 Sep 2020 20:52:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F5032395B for ; Mon, 21 Sep 2020 20:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721540; bh=S6uz75N+KTMpHiajTgSe32w054iMQgvcEv/GqGeXyV0=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=aHI7ms4wRT9X+gS3Mi66U2rGj7MFquvQTMX4MLoTj0n4QDahhbvMAUEsM5ezv1AR+ 2EeO+A9bgMVQUTfalXIRb9UTEKynU4PvIruQ6tDn0KPsINBnpHgFmggA3sFtYg3c66 rGpltTSujqR3t8UBKI45P3odd5FqUZTJG+pGRA5Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728439AbgIUUwQ (ORCPT ); Mon, 21 Sep 2020 16:52:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:58158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727760AbgIUUwQ (ORCPT ); Mon, 21 Sep 2020 16:52:16 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 E2C26238EE; Mon, 21 Sep 2020 20:52:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721535; bh=S6uz75N+KTMpHiajTgSe32w054iMQgvcEv/GqGeXyV0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rd8IsRc2CoBBPrLDNCJ34VaU0TbmbAh5AtFtGtXUAaMWZUSAHDYGKWtLY8xI9s2mj MHu/2IQlknbui7AnAT/4Do1Ce3GZQzFUGJ70N2Mv9rSdndxUCNasHrLBQZ2SU4HL2M NIgDeswVVDbaAOpfTJqbz24GGzmDeysSkKlzRheI= 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 , Sangbeom Kim , 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: [PATCH 18/42] mfd: max77843: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:52 +0200 Message-Id: <20200921205016.20461-18-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/max77843.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77843.c b/drivers/mfd/max77843.c index 209ee24d9ce1..da9c32c44e3d 100644 --- a/drivers/mfd/max77843.c +++ b/drivers/mfd/max77843.c @@ -148,7 +148,7 @@ static int max77843_probe(struct i2c_client *i2c, goto err_pmic_id; } - ret = mfd_add_devices(max77843->dev, -1, max77843_devs, + ret = mfd_add_devices(max77843->dev, PLATFORM_DEVID_NONE, max77843_devs, ARRAY_SIZE(max77843_devs), NULL, 0, NULL); if (ret < 0) { dev_err(&i2c->dev, "Failed to add mfd device\n"); From patchwork Mon Sep 21 20:49:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295519 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 EFF21C4363C for ; Mon, 21 Sep 2020 20:52:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE4272396F for ; Mon, 21 Sep 2020 20:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721542; bh=yEgDn4IkqKQksCNA/NQZDILTLecSilVq6LggKwvJXf8=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=C7F5mhDsCB//TsyCJJw/f2G1w4R1fpkPDcb6EaJDlVCafSGG/00rddvwJY3neQpra DDCiG5UtGeNq59Vbg1HlHrSGoTWq42U6SggaJN+xufIXFV9D1x1fNk/HQUioCopDCS gMeGuCB7ihDo9QRhXaDhyD9ydcqDEHUWlhY/+hdg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727286AbgIUUwW (ORCPT ); Mon, 21 Sep 2020 16:52:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIUUwV (ORCPT ); Mon, 21 Sep 2020 16:52:21 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 4DF7D238E2; Mon, 21 Sep 2020 20:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721541; bh=yEgDn4IkqKQksCNA/NQZDILTLecSilVq6LggKwvJXf8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ugz3FBLCHTQJBrVs+u5eNW1C95SSMEs+BGcd4V04BXU5YDwerGwGJ0CeJNL7saypT Db9pZTI0RwjuWlJUfJOSB06N3FHlwhepVsR5iEGyhDS+55LS+kIGHFM0z1nrsq6E94 phi3F6o4shZGbqR+Mc0lXhXtW6rFLegkM6Mg/Nz4= 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 , Sangbeom Kim , 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: [PATCH 19/42] mfd: max8907: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:53 +0200 Message-Id: <20200921205016.20461-19-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/max8907.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c index d44baafd9d14..5119d4092d3d 100644 --- a/drivers/mfd/max8907.c +++ b/drivers/mfd/max8907.c @@ -257,7 +257,7 @@ static int max8907_i2c_probe(struct i2c_client *i2c, enable_irq(max8907->i2c_gen->irq); - ret = mfd_add_devices(max8907->dev, -1, max8907_cells, + ret = mfd_add_devices(max8907->dev, PLATFORM_DEVID_NONE, max8907_cells, ARRAY_SIZE(max8907_cells), NULL, 0, NULL); if (ret != 0) { dev_err(&i2c->dev, "failed to add MFD devices %d\n", ret); From patchwork Mon Sep 21 20:49: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: 256508 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 48E64C35257 for ; Mon, 21 Sep 2020 20:52:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 177C22396F for ; Mon, 21 Sep 2020 20:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721551; bh=QSsL+CSI3AXchxxz+lidBlleLXKIIKScSMwUhN+nqIg=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=FChkrgS6WfRXQ5Fi3RjtQc4q1CxzYfgnlDRsB6fchsX3I3Fq6HqmZFyVfUPIfI/fc uM8yXWzjFO5VWtSPqTPG8TIqcR7UNNlJfvBA/J4cv4XzNVDWKgKwLqOjKgPAqZHF// NLYxS0RacOXEI//BmWvaEIYL2LkGy1qnQfZq8C1U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728468AbgIUUw1 (ORCPT ); Mon, 21 Sep 2020 16:52:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:58374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727867AbgIUUw1 (ORCPT ); Mon, 21 Sep 2020 16:52:27 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 0E68A23976; Mon, 21 Sep 2020 20:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721547; bh=QSsL+CSI3AXchxxz+lidBlleLXKIIKScSMwUhN+nqIg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CKRPN6pyK1hs+xuYm2MSFPZMr8UtZbSG6IoSCc1v3vxB+Jy51NPBorqk2XjHWn3Kw c1xJgVJzAZlXFNpsXGZ1cZL+5WXUf0b92maFxRxFDwHd9M13bXhBZCE09vzYWocWAz 2i41oYfJ7b2To0uxQDXYx19wqAIG32QxiW4+YXRk= 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 , Sangbeom Kim , 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: [PATCH 20/42] mfd: max8997: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:54 +0200 Message-Id: <20200921205016.20461-20-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/max8997.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 68d8f2b95287..0c5b8baead62 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -212,7 +212,7 @@ static int max8997_i2c_probe(struct i2c_client *i2c, max8997_irq_init(max8997); - ret = mfd_add_devices(max8997->dev, -1, max8997_devs, + ret = mfd_add_devices(max8997->dev, PLATFORM_DEVID_NONE, max8997_devs, ARRAY_SIZE(max8997_devs), NULL, 0, NULL); if (ret < 0) { From patchwork Mon Sep 21 20:49:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295518 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 BD127C46466 for ; Mon, 21 Sep 2020 20:52:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E117239CF for ; Mon, 21 Sep 2020 20:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721554; bh=Whd+JvoTRUD6O5CJPDtNs6sNnmIrBGRuk8YsJQaT9EA=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=e+d/ejcBdyvcC9+d5KqWAxoYPJhyccoGeJDpKFVkj8l6mHGp43X/x6wfn+aqKoiRJ oDzsvdZRtel8nr1HtqQfjTLZFNSn34Nh/1ykYg+YvCTWStJGyjAEbCs4IPZRcRsx29 attuTlnX0+aRgo1IccYnape08dZZYXgV8iwRzkso= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727867AbgIUUwd (ORCPT ); Mon, 21 Sep 2020 16:52:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:58520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIUUwd (ORCPT ); Mon, 21 Sep 2020 16:52:33 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 8AECB23998; Mon, 21 Sep 2020 20:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721553; bh=Whd+JvoTRUD6O5CJPDtNs6sNnmIrBGRuk8YsJQaT9EA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sNhiWDGeIHNkbAoote6tsKEdItFPJIo8GJpUiEdfAbhZPJxLRJ7lk6VWJadufd9KM TTXDzHQ1xNaJU/2I4STKmYq1U4uKiCvsKHjsiBw2gYViezkNwQ7fwtD8fX/GRfHl06 4nH7FJ0BG4eqMMrLca+OmY7uDBatZN79o8L1xqrU= 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 , Sangbeom Kim , 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: [PATCH 21/42] mfd: max8998: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:55 +0200 Message-Id: <20200921205016.20461-21-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/max8998.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/max8998.c b/drivers/mfd/max8998.c index 785f8e9841b7..33d92eddfd06 100644 --- a/drivers/mfd/max8998.c +++ b/drivers/mfd/max8998.c @@ -208,12 +208,12 @@ static int max8998_i2c_probe(struct i2c_client *i2c, switch (max8998->type) { case TYPE_LP3974: - ret = mfd_add_devices(max8998->dev, -1, + ret = mfd_add_devices(max8998->dev, PLATFORM_DEVID_NONE, lp3974_devs, ARRAY_SIZE(lp3974_devs), NULL, 0, NULL); break; case TYPE_MAX8998: - ret = mfd_add_devices(max8998->dev, -1, + ret = mfd_add_devices(max8998->dev, PLATFORM_DEVID_NONE, max8998_devs, ARRAY_SIZE(max8998_devs), NULL, 0, NULL); break; From patchwork Mon Sep 21 20:49:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256507 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 49F2BC4363C for ; Mon, 21 Sep 2020 20:52:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 15545239D3 for ; Mon, 21 Sep 2020 20:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721561; bh=BzfE2Whd2U7I4lvlW4ZlgaA3TzQPIBadcLxzR76dqV4=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=0zuW4KX7cn2ha8nFew5l3r9EsGrkh5JTnqx1/woZxUBGtVdFyYIMpgM8KLc9MZX2x SxWxcT53xntDlOK/j7kT35JAwo6kUf5j0RsxxDnJDtbSe2kvlhfAVmqvtJjoOicGZb tR+gl6HItQuFKf4pr22GZWeHkRl3NTtFuu2kCBh8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727338AbgIUUwk (ORCPT ); Mon, 21 Sep 2020 16:52:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:58622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726471AbgIUUwk (ORCPT ); Mon, 21 Sep 2020 16:52:40 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 CCC082396F; Mon, 21 Sep 2020 20:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721559; bh=BzfE2Whd2U7I4lvlW4ZlgaA3TzQPIBadcLxzR76dqV4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=0xrrNERPAOjcnJfTnvx8zXTdqI4QtH/KkJEc5ISWZ892Da9Pvj2pt+RB9CdLPMviW Wx9sMVz/GbBrg7dascbeY3nGZkPjUwrc3XeHPXpAZ+mKbzY8DeDh3w53Z/Beu1xoQR WYfvkwxrtDqc19xINy0aRq9eZ8k6nmWQ4MB+jUvU= 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 , Sangbeom Kim , 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: [PATCH 22/42] mfd: mc13xxx: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:56 +0200 Message-Id: <20200921205016.20461-22-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/mc13xxx-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 1abe7432aad8..659e72cdac3d 100644 --- a/drivers/mfd/mc13xxx-core.c +++ b/drivers/mfd/mc13xxx-core.c @@ -379,8 +379,8 @@ static int mc13xxx_add_subdevice_pdata(struct mc13xxx *mc13xxx, if (!cell.name) return -ENOMEM; - return mfd_add_devices(mc13xxx->dev, -1, &cell, 1, NULL, 0, - regmap_irq_get_domain(mc13xxx->irq_data)); + return mfd_add_devices(mc13xxx->dev, PLATFORM_DEVID_NONE, &cell, 1, NULL, + 0, regmap_irq_get_domain(mc13xxx->irq_data)); } static int mc13xxx_add_subdevice(struct mc13xxx *mc13xxx, const char *format) From patchwork Mon Sep 21 20:49:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295517 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 C0449C35257 for ; Mon, 21 Sep 2020 20:52:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8823E239D4 for ; Mon, 21 Sep 2020 20:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721571; bh=hE3o37HAl8/p4qX2nqJrTMXoyiiYALc9HXrxjJsJ00g=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=VkY4yOz6MG2MDmgBgmJygn2d/iN4NCfkuXS3O9sLubS4Cotu/PfIWbX79ZJ7xafxo vfXWsC0loYiJ0x5S1sUKXIpPOSVDqmaXT67aTCAKeSWNfSd0GLbGnWVe7iirnkY6n6 oamyOKwLixmn1k04BoPC3W1f+iUVGukcYhkeq69o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728512AbgIUUwq (ORCPT ); Mon, 21 Sep 2020 16:52:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:58752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIUUwq (ORCPT ); Mon, 21 Sep 2020 16:52:46 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 182792399C; Mon, 21 Sep 2020 20:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721565; bh=hE3o37HAl8/p4qX2nqJrTMXoyiiYALc9HXrxjJsJ00g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gsRJKxxoh+mcFlptxey0q3x8S3T4GD9G7kLspIytq2CPvD556wNwoa1jibU+syoiE tsRzrc/yVMRQSHiorqtvQVNjfxLZ1AM1rDMx2Vhfd0q5oV1hxMpsRVxKG706y5uII+ SOe9FeQouh+g8sPtFBIDXEhlvg+C3zv5LQXqVwx4= 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 , Sangbeom Kim , 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: [PATCH 23/42] mfd: rc5t583: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:57 +0200 Message-Id: <20200921205016.20461-23-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/rc5t583.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/rc5t583.c b/drivers/mfd/rc5t583.c index d0dc48f99096..a4915f411ee8 100644 --- a/drivers/mfd/rc5t583.c +++ b/drivers/mfd/rc5t583.c @@ -270,8 +270,9 @@ static int rc5t583_i2c_probe(struct i2c_client *i2c, dev_warn(&i2c->dev, "IRQ init failed: %d\n", ret); } - ret = devm_mfd_add_devices(rc5t583->dev, -1, rc5t583_subdevs, - ARRAY_SIZE(rc5t583_subdevs), NULL, 0, NULL); + ret = devm_mfd_add_devices(rc5t583->dev, PLATFORM_DEVID_NONE, + rc5t583_subdevs, ARRAY_SIZE(rc5t583_subdevs), + NULL, 0, NULL); if (ret) { dev_err(&i2c->dev, "add mfd devices failed: %d\n", ret); return ret; From patchwork Mon Sep 21 20:49:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256506 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 4492EC41604 for ; Mon, 21 Sep 2020 20:52:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0658B239D1 for ; Mon, 21 Sep 2020 20:52:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721575; bh=4l5EcFNsHCzglwrYOfnWy2wzxJKCwp3cQW+goZZn3Bc=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=OenBFkQZlgjbdb9+xsOfzebweoW8cM/4stPAXVBRmhvFDsfK8cvlUoc5XdZgVdHEd n+FsMN7C5BSJwucOL8W/YG7x+ECNcJS15G9C+KGf8iAg5z3hO2aOP+6T3yNW20MW6o Hd1G3GKFgbh9oKbvbdZN9CqxNIFh+NAIZK1wn5VE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbgIUUwy (ORCPT ); Mon, 21 Sep 2020 16:52:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgIUUwv (ORCPT ); Mon, 21 Sep 2020 16:52:51 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 32F15239D0; Mon, 21 Sep 2020 20:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721571; bh=4l5EcFNsHCzglwrYOfnWy2wzxJKCwp3cQW+goZZn3Bc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hdxxlIN7nhyiXICPAz/DiJXidfntdrT+N0IUCU4cEBHp8L9VNp253woUEYEdynYqo oRTK9o8UjFu6TpNvPTgQjl7jiZlF4fPgClT2pnLfo5qkCnH+5+bqChFuPbR8ci8qWh +qOdGYmNHjD0kaD7IQrPQhusQ41DVmERmeiURCUM= 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 , Sangbeom Kim , 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: [PATCH 24/42] mfd: rdc321x: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:58 +0200 Message-Id: <20200921205016.20461-24-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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: Florian Fainelli --- drivers/mfd/rdc321x-southbridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rdc321x-southbridge.c b/drivers/mfd/rdc321x-southbridge.c index fbb1faf95e27..6fb0d625cec9 100644 --- a/drivers/mfd/rdc321x-southbridge.c +++ b/drivers/mfd/rdc321x-southbridge.c @@ -71,7 +71,7 @@ static int rdc321x_sb_probe(struct pci_dev *pdev, rdc321x_gpio_pdata.sb_pdev = pdev; rdc321x_wdt_pdata.sb_pdev = pdev; - return devm_mfd_add_devices(&pdev->dev, -1, + return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, rdc321x_sb_cells, ARRAY_SIZE(rdc321x_sb_cells), NULL, 0, NULL); From patchwork Mon Sep 21 20:49:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295516 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 82EDEC4363C for ; Mon, 21 Sep 2020 20:53:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E9A8239E5 for ; Mon, 21 Sep 2020 20:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721581; bh=tV83lbckL3BUbusSp+k2ben0NRWIywBFOecylgZRFzU=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=JnGbnO2PzXZcd3CLhg+2ZkUcR8yAOyKNsh68OSEY+LClhItGBJ7LaoXWgwVGk0NB6 xu5sS3jGuYCxoX3N9V7EoG5bEOjtTIQ6bEctDY+mmOpjWC6gTqp7vqmmTLTeZ9LSnf BgLXIm5kcAsFtE4ph8FHjwWLXyTk06i2vwde0uEA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728530AbgIUUxA (ORCPT ); Mon, 21 Sep 2020 16:53:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:58980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgIUUw5 (ORCPT ); Mon, 21 Sep 2020 16:52:57 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 A5C27239E7; Mon, 21 Sep 2020 20:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721576; bh=tV83lbckL3BUbusSp+k2ben0NRWIywBFOecylgZRFzU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=E+RGMGs0y1au3y8G/YoZX5va4ym8jLAJVdPslKDcnTJfrtBC5wofWJASM+BWB9fjC fWx2+6ZhiIGkIk+OBLGY5BJYtpQD2Kk7rl9o305hcetDfabvEnDVepx2CcFpZRAcxg 81O6vo4O9y/gq35y72re5tfX4qW42k1/QiQguzWA= 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 , Sangbeom Kim , 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: [PATCH 25/42] mfd: retu: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:59 +0200 Message-Id: <20200921205016.20461-25-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/retu-mfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c index e7d27b7861c1..55e24e8343f3 100644 --- a/drivers/mfd/retu-mfd.c +++ b/drivers/mfd/retu-mfd.c @@ -271,9 +271,9 @@ static int retu_probe(struct i2c_client *i2c, const struct i2c_device_id *id) if (ret < 0) return ret; - ret = mfd_add_devices(rdev->dev, -1, rdat->children, rdat->nchildren, - NULL, regmap_irq_chip_get_base(rdev->irq_data), - NULL); + ret = mfd_add_devices(rdev->dev, PLATFORM_DEVID_NONE, rdat->children, + rdat->nchildren, NULL, + regmap_irq_chip_get_base(rdev->irq_data), NULL); if (ret < 0) { regmap_del_irq_chip(i2c->irq, rdev->irq_data); return ret; From patchwork Mon Sep 21 20:50:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256505 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 4900BC4363C for ; Mon, 21 Sep 2020 20:53:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0AAA0239ED for ; Mon, 21 Sep 2020 20:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721586; bh=DTa0t8zx85OCD4wAxCgE1qRi2ZT8BLOTiM4fbOBfGL4=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Yx35/v6QAQhaa4flQfW4dYNaLtYTTyPo6+4cXQoEEKEgz8cQLTUB/yFZfZ2ggpR1r hgoWq0SBzUkWarcKVDoM1A9xsRRPbyecXR7nA+423GuuhKJbIlw+T2vPw5azDjpTG/ aqRVSgy+qNuq1uUspsYxNm71D7QAuC4ZL819+stY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728374AbgIUUxF (ORCPT ); Mon, 21 Sep 2020 16:53:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:59078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgIUUxD (ORCPT ); Mon, 21 Sep 2020 16:53:03 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 492F4239D1; Mon, 21 Sep 2020 20:52:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721582; bh=DTa0t8zx85OCD4wAxCgE1qRi2ZT8BLOTiM4fbOBfGL4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cXP0sxjubj9xy6faXr4Ggc1XoYLe1UZJ7pRl+rZeSh6eXGlMms6hE0HJTGP5DkGQN DGn/LNn8+V9x+dKmsjRwW44ah542jp51YKlgR1E+9VHIbv6ZpBGCK1AOWUdKsdsHMr a2S6VMAypKx0/k5+FKc7JQNBJTbA8tEyXkksXG7w= 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 , Sangbeom Kim , 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: [PATCH 26/42] mfd: rt5033: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:00 +0200 Message-Id: <20200921205016.20461-26-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/rt5033.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rt5033.c b/drivers/mfd/rt5033.c index 48381d9bf740..8ec245cc4393 100644 --- a/drivers/mfd/rt5033.c +++ b/drivers/mfd/rt5033.c @@ -94,7 +94,7 @@ static int rt5033_i2c_probe(struct i2c_client *i2c, return ret; } - ret = devm_mfd_add_devices(rt5033->dev, -1, rt5033_devs, + ret = devm_mfd_add_devices(rt5033->dev, PLATFORM_DEVID_NONE, rt5033_devs, ARRAY_SIZE(rt5033_devs), NULL, 0, regmap_irq_get_domain(rt5033->irq_data)); if (ret < 0) { From patchwork Mon Sep 21 20:50:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295515 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 644B1C4363C for ; Mon, 21 Sep 2020 20:53:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17B9223A01 for ; Mon, 21 Sep 2020 20:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721595; bh=2+06qkbWAVkuhERi8bhEbQjqR1FgtPU6AJIKYJUtzs4=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=0bNeH3Z4GwYVZF5aGCTjCabwMLkE7V6nIBoJWtzM93zS6NyYBwncYtkCQ0+caSFgM Mq20IaTZ4vTIzEJpSQ3T9ksfVD6h1Om/lSyRNHEExIhADiQu4kg6twsTwhM3W5YKVb 4pmtmFlaJnDTBINI+qP6N23KFiR7JHkKCDiWgQic= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728550AbgIUUxL (ORCPT ); Mon, 21 Sep 2020 16:53:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:59214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbgIUUxJ (ORCPT ); Mon, 21 Sep 2020 16:53:09 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 74E70239EB; Mon, 21 Sep 2020 20:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721588; bh=2+06qkbWAVkuhERi8bhEbQjqR1FgtPU6AJIKYJUtzs4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yQowhQxnH44W+Den+Gm9jvWj8JtK6DNN/YYciYlwqQpU+z7+vAEs9H4lO500Uwzgy iPXvXrendlG4E81o18bwZ8I4MLSZuRPMBk+Mb7iKR9/QAGmGAdGrUlGX9aei5RE8yQ JIIqa36YxlE88vEaGRtyOAoJsBWWe2WIJSsj57iI= 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 , Sangbeom Kim , 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: [PATCH 27/42] mfd: sec: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:01 +0200 Message-Id: <20200921205016.20461-27-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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 8d55992da19e..804f32d0ae22 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; From patchwork Mon Sep 21 20:50:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256504 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 AF53FC4363C for ; Mon, 21 Sep 2020 20:53:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6E8A423A05 for ; Mon, 21 Sep 2020 20:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721601; bh=vl9hZRjzQuQZVyZkHFM7WBut7v+d+MhGZ9ZjiUhf3oc=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Te9Mro/ETx852aCnO0cCZx0FaY4HR2iUM40AveUxJm+QdpOo0JzHmW6937MN6Qpc8 GATpAm6MLnC0+LT+FcVY6liRPY7kKj0JV68INWt/jryYLDCrh7v9tLuFlewpgZvJF+ PO4A/Y4Tv92DGlV2+L7lq5av4A6G63wQCFjnnxHA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728129AbgIUUxR (ORCPT ); Mon, 21 Sep 2020 16:53:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:59328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbgIUUxP (ORCPT ); Mon, 21 Sep 2020 16:53:15 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 615E3239ED; Mon, 21 Sep 2020 20:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721594; bh=vl9hZRjzQuQZVyZkHFM7WBut7v+d+MhGZ9ZjiUhf3oc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eQK1UziiQi05ns+e0ZVzoBfRXaWkZovKOxLW/e7bIb2VKrmko+OX4L1dfyQgcTPvK WUXzsmbUrvrYt/cNbGtvlvJuMDcrha1cU4ESLDn2kw1NQfWgVSx/+pDpv4kbHVdap7 /KRWgnLpB9KT7LjwGoRw3zkRDe6rcXbhX0KWSHkU= 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 , Sangbeom Kim , 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: [PATCH 28/42] mfd: sky81452: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:02 +0200 Message-Id: <20200921205016.20461-28-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/sky81452.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/sky81452.c b/drivers/mfd/sky81452.c index 3ad35bf0c015..a45cad77b87c 100644 --- a/drivers/mfd/sky81452.c +++ b/drivers/mfd/sky81452.c @@ -51,8 +51,8 @@ static int sky81452_probe(struct i2c_client *client, cells[1].platform_data = pdata->regulator_init_data; cells[1].pdata_size = sizeof(*pdata->regulator_init_data); - ret = devm_mfd_add_devices(dev, -1, cells, ARRAY_SIZE(cells), - NULL, 0, NULL); + ret = devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE, cells, + ARRAY_SIZE(cells), NULL, 0, NULL); if (ret) dev_err(dev, "failed to add child devices. err=%d\n", ret); From patchwork Mon Sep 21 20:50:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295514 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 234FAC35257 for ; Mon, 21 Sep 2020 20:53:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE31923A05 for ; Mon, 21 Sep 2020 20:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721604; bh=Gd5L6OSoOltwRu1LJekfayeX7TBoV7+ZPquyuCTihUs=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Z1ZRYtDW1Rx+yCmr8MgDxx6QuhOTrWp6z8Ks8W61PCH1ZvvAwWRpYysr7XWCHViee 4xB1pIzwX5+86BFxfLXaN1s/sO9C4D46yjj1px3UxcUv6rdc9RzFZiU4OtwkWmTyn8 M5D2lNzSQsQa/B4egyulHztZUHeHrVv+5jOr8i/U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727782AbgIUUxV (ORCPT ); Mon, 21 Sep 2020 16:53:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:59446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbgIUUxV (ORCPT ); Mon, 21 Sep 2020 16:53:21 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 5F2FB23A03; Mon, 21 Sep 2020 20:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721600; bh=Gd5L6OSoOltwRu1LJekfayeX7TBoV7+ZPquyuCTihUs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yFDZPUhtdDXi2eGOkC/Kr9YCwTlRmiQaHGrq1t65W8Iwli6viP3MPo1u+Wjl2cs7o n6iZGZYjgAU4yYMOYgWbKLhgOVbUQfjh+w4YObVydvZDqK5zmNdIubLXrW0r1ud024 U3I8aRti4esshB0PxBAYMlzBkqwiw1Agiy71PNBE= 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 , Sangbeom Kim , 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: [PATCH 29/42] mfd: sta2x11: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:03 +0200 Message-Id: <20200921205016.20461-29-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/sta2x11-mfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c index 1819c8fe4d8f..fafb3292dce8 100644 --- a/drivers/mfd/sta2x11-mfd.c +++ b/drivers/mfd/sta2x11-mfd.c @@ -594,7 +594,7 @@ static int sta2x11_mfd_probe(struct pci_dev *pdev, /* Just 2 bars for all mfd's at present */ for (i = 0; i < 2; i++) { - err = mfd_add_devices(&pdev->dev, -1, + err = mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, setup_data->bars[i].cells, setup_data->bars[i].ncells, &pdev->resource[i], From patchwork Mon Sep 21 20:50:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256503 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 A2806C4363C for ; Mon, 21 Sep 2020 20:53:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E20423A1E for ; Mon, 21 Sep 2020 20:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721608; bh=ma7yjwLc8yk7sb1IlZOrRcZ6FpTnWzSvH+VuumuxwNM=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=W88eJaaT5J2+8JlCTmRHDC9JIHISR2qZRVtaj8NHA0bmx1wDXk4FEX27jX3E8lXe1 5kV47+l+Ze0D3BSs1tsvHh3TRYSQD8R37fIxGU99QOj9BkK3atlrVBPPtrzAMYfprM W3pbLAoql0vyV6vWIyBMhEv7nV2mV8WD6ud3NkvI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbgIUUx1 (ORCPT ); Mon, 21 Sep 2020 16:53:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:59580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbgIUUx1 (ORCPT ); Mon, 21 Sep 2020 16:53:27 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 52C1123A04; Mon, 21 Sep 2020 20:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721606; bh=ma7yjwLc8yk7sb1IlZOrRcZ6FpTnWzSvH+VuumuxwNM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=2k3YGd9RjzvwF9ecI0gy1b1sHXUvUTRGToUYpjIDMjv5AAMb950oJIbrQSHseBM5V tuvjNHzPiPhTwKROuWFZRxkakmU1z6b8NbkYiEDexTj7uq8ofJ6GzAlvDUtlntDpfv fwU0q0OSV7U44sPJbQvFP1S3eER2tvorU3jZ7cu0= 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 , Sangbeom Kim , 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: [PATCH 30/42] mfd: tc3589x: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:04 +0200 Message-Id: <20200921205016.20461-30-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/tc3589x.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c index 7882a37ffc35..22821112cc6b 100644 --- a/drivers/mfd/tc3589x.c +++ b/drivers/mfd/tc3589x.c @@ -287,7 +287,8 @@ static int tc3589x_device_init(struct tc3589x *tc3589x) unsigned int blocks = tc3589x->pdata->block; if (blocks & TC3589x_BLOCK_GPIO) { - ret = mfd_add_devices(tc3589x->dev, -1, tc3589x_dev_gpio, + ret = mfd_add_devices(tc3589x->dev, PLATFORM_DEVID_NONE, + tc3589x_dev_gpio, ARRAY_SIZE(tc3589x_dev_gpio), NULL, 0, tc3589x->domain); if (ret) { @@ -298,7 +299,8 @@ static int tc3589x_device_init(struct tc3589x *tc3589x) } if (blocks & TC3589x_BLOCK_KEYPAD) { - ret = mfd_add_devices(tc3589x->dev, -1, tc3589x_dev_keypad, + ret = mfd_add_devices(tc3589x->dev, PLATFORM_DEVID_NONE, + tc3589x_dev_keypad, ARRAY_SIZE(tc3589x_dev_keypad), NULL, 0, tc3589x->domain); if (ret) { From patchwork Mon Sep 21 20:50:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295513 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 019A8C35257 for ; Mon, 21 Sep 2020 20:53:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C334023A1E for ; Mon, 21 Sep 2020 20:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721615; bh=vSy8YmQ7rMfM5gLA126GFQJXpLeU/lgw/zMliEK3SNE=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=yy1b7rMqiWkjRNnGAGInHms2ziwm/5m1JHUqvmw7kmjaoQGyRTK+Isx3yUmfAt4S2 Yba34E4XTFS3MZCPWy6X9UM+MXAtfnzBuxyVuBGjTM/+w56KnIPwe/E32P1GLZjTIo hGSCsvdSc27G2H1MQ4pqcCt2symCRwJy5nhrRNfg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbgIUUxe (ORCPT ); Mon, 21 Sep 2020 16:53:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:59674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728591AbgIUUxd (ORCPT ); Mon, 21 Sep 2020 16:53:33 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 5054023A02; Mon, 21 Sep 2020 20:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721612; bh=vSy8YmQ7rMfM5gLA126GFQJXpLeU/lgw/zMliEK3SNE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=0b8YLwhSR25s08K6K3VIQv8gf0CHWCOkUjWK+7fUVSw5u6ixUSqp7WJXhs1CGI99X U7tUJKfLfR65YwpxpXsfeR0W3Vai0heNWWPRDwE9mGx250fEc2uDCQmQztNpeFJW+E 6HJ606+1we8DiViFLx+X8zeQQmnoqfLJkd/968MQ= 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 , Sangbeom Kim , 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: [PATCH 31/42] mfd: timberdale: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:05 +0200 Message-Id: <20200921205016.20461-31-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/timberdale.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index faecbca6dba3..de1589fa2120 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c @@ -740,25 +740,25 @@ static int timb_probe(struct pci_dev *dev, ip_setup = priv->fw.config & TIMB_HW_VER_MASK; switch (ip_setup) { case TIMB_HW_VER0: - err = mfd_add_devices(&dev->dev, -1, + err = mfd_add_devices(&dev->dev, PLATFORM_DEVID_NONE, timberdale_cells_bar0_cfg0, ARRAY_SIZE(timberdale_cells_bar0_cfg0), &dev->resource[0], msix_entries[0].vector, NULL); break; case TIMB_HW_VER1: - err = mfd_add_devices(&dev->dev, -1, + err = mfd_add_devices(&dev->dev, PLATFORM_DEVID_NONE, timberdale_cells_bar0_cfg1, ARRAY_SIZE(timberdale_cells_bar0_cfg1), &dev->resource[0], msix_entries[0].vector, NULL); break; case TIMB_HW_VER2: - err = mfd_add_devices(&dev->dev, -1, + err = mfd_add_devices(&dev->dev, PLATFORM_DEVID_NONE, timberdale_cells_bar0_cfg2, ARRAY_SIZE(timberdale_cells_bar0_cfg2), &dev->resource[0], msix_entries[0].vector, NULL); break; case TIMB_HW_VER3: - err = mfd_add_devices(&dev->dev, -1, + err = mfd_add_devices(&dev->dev, PLATFORM_DEVID_NONE, timberdale_cells_bar0_cfg3, ARRAY_SIZE(timberdale_cells_bar0_cfg3), &dev->resource[0], msix_entries[0].vector, NULL); From patchwork Mon Sep 21 20:50:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256502 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 63DA7C4363C for ; Mon, 21 Sep 2020 20:53:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 295F323A32 for ; Mon, 21 Sep 2020 20:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721624; bh=rwcxHedviMWPck0GnAohh/fen5W24mFQK+Aj4ZWN5CQ=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=hVmLPVSLcE5J2NeYF5a1dTnlqnZXBN/IQEkkchNCV/uIKlD87fHn6hyX55nK2QNkX Tc5Go0WPrhynYrXglbo49Q7cZCWVTNhesxyukxjZUGT8GrI3cunXoFmqVmaAOGFuMf w9+ANUdRYPUhjoBalF+GiXIh8jHlca3MI9nNsFxI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728604AbgIUUxk (ORCPT ); Mon, 21 Sep 2020 16:53:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:59820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727808AbgIUUxj (ORCPT ); Mon, 21 Sep 2020 16:53:39 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 4424423A05; Mon, 21 Sep 2020 20:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721618; bh=rwcxHedviMWPck0GnAohh/fen5W24mFQK+Aj4ZWN5CQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZUiisC6xMElCEgCvcvp/5Dl3VPq01LXASpf7secFAPKMapn3dwV9P9rN50NzWddNC ykEY1501HmwA8msHcWeuO0FX74zHrhg5JVnDAkR9PAsCxm5Rqfuo3lQduF09bTCPZe JouzhCYwO+ry49IamxA8LwrnFos/6fjv3ipDl3x4= 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 , Sangbeom Kim , 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: [PATCH 32/42] mfd: tps6507x: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:06 +0200 Message-Id: <20200921205016.20461-32-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/tps6507x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tps6507x.c b/drivers/mfd/tps6507x.c index 1f308c4e3694..15bb92ef64c7 100644 --- a/drivers/mfd/tps6507x.c +++ b/drivers/mfd/tps6507x.c @@ -100,8 +100,9 @@ static int tps6507x_i2c_probe(struct i2c_client *i2c, tps6507x->read_dev = tps6507x_i2c_read_device; tps6507x->write_dev = tps6507x_i2c_write_device; - return devm_mfd_add_devices(tps6507x->dev, -1, tps6507x_devs, - ARRAY_SIZE(tps6507x_devs), NULL, 0, NULL); + return devm_mfd_add_devices(tps6507x->dev, PLATFORM_DEVID_NONE, + tps6507x_devs, ARRAY_SIZE(tps6507x_devs), + NULL, 0, NULL); } static const struct i2c_device_id tps6507x_i2c_id[] = { From patchwork Mon Sep 21 20:50:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295512 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 C0B43C41604 for ; Mon, 21 Sep 2020 20:53:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8DDFE23A51 for ; Mon, 21 Sep 2020 20:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721629; bh=cMiRJpoRq2UzInKVvMQQX4aNM30Dhzlto4skXmptPUE=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=yk4/zEGa3xI5NOLqgZ32JF+n8dE4CRaiA+VEeDGoxNMQsXE/raW4noDSa/OwICkwv katuytGKm6ulBjZTPLg1TqtmE0hA9rEjZoCGAN0c/aBwhT67NW3eXco1m9yA1+F8wE QoqHqU+/3ZrBTFeawtzdaUmuzYtnkwZ4FhZcQyao= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728254AbgIUUxq (ORCPT ); Mon, 21 Sep 2020 16:53:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:60000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727808AbgIUUxp (ORCPT ); Mon, 21 Sep 2020 16:53:45 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 F178623A40; Mon, 21 Sep 2020 20:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721625; bh=cMiRJpoRq2UzInKVvMQQX4aNM30Dhzlto4skXmptPUE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OmTRGutKlSehHWokIvFIzS4x5J16PPPWTUJ8TJhyh488X7zteCKvsFkbdzfp0fhUF L5DjHNEMbE3xeOQXspd1yFHkWnxgGnZp2TsKlcLpDbCgfHWWmBh+erNA9WTSQPKac6 v7Hd0WvLWgZD9OIun9P2sOV64Nw+I4DdAFDj7stM= 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 , Sangbeom Kim , 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: [PATCH 33/42] mfd: tps65090: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:07 +0200 Message-Id: <20200921205016.20461-33-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/tps65090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index 6cdf6c315034..f8f7170f5822 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -209,7 +209,7 @@ static int tps65090_i2c_probe(struct i2c_client *client, tps65090s[CHARGER].num_resources = 0; } - ret = mfd_add_devices(tps65090->dev, -1, tps65090s, + ret = mfd_add_devices(tps65090->dev, PLATFORM_DEVID_NONE, tps65090s, ARRAY_SIZE(tps65090s), NULL, 0, regmap_irq_get_domain(tps65090->irq_data)); if (ret) { From patchwork Mon Sep 21 20:50:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256501 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 85E0EC35257 for ; Mon, 21 Sep 2020 20:53:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 547E523A33 for ; Mon, 21 Sep 2020 20:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721635; bh=aZXVcIoMqrW13nlRYEijDi7+xye+k+OAkECDJmkVme4=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=TmpeUWm3KzCJ8vt4UZB92BDNT4tVUGj8q2shBPnWVE11BkbY8Di/aCVt2g47dC6hV KSu227v4hkRsgF+Rajao3Od2erZwP4xqfrC+xWGOc9fmPkz2f2lYE8OzLgQPuuVySz RmX2NsCWsa4Dl0T5irIdk7edV3R4f8gR0Iz1uAJA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727766AbgIUUxv (ORCPT ); Mon, 21 Sep 2020 16:53:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:60118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbgIUUxv (ORCPT ); Mon, 21 Sep 2020 16:53:51 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 997AD23A01; Mon, 21 Sep 2020 20:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721630; bh=aZXVcIoMqrW13nlRYEijDi7+xye+k+OAkECDJmkVme4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=efwURbUGDX+x+IN9vSqH/EFBgi4g4CBP4Jic2BGowe3760wOeivNY/hBI1LHdrbLd vnfkWxJ77AB3lbiFzLL71tzv0KtV/F8cyKg/sU2HMY8yOj7r0nOO/MexTweehhVV3I OPSyStT4P5Hg1u3+rNGJPiN5UWetYc/d5c02xRGw= 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 , Sangbeom Kim , 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: [PATCH 34/42] mfd: tps65217: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:08 +0200 Message-Id: <20200921205016.20461-34-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/tps65217.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 2d9c282ec917..ef941bd611d2 100644 --- a/drivers/mfd/tps65217.c +++ b/drivers/mfd/tps65217.c @@ -351,7 +351,7 @@ static int tps65217_probe(struct i2c_client *client) tps65217s[i].num_resources = 0; } - ret = devm_mfd_add_devices(tps->dev, -1, tps65217s, + ret = devm_mfd_add_devices(tps->dev, PLATFORM_DEVID_NONE, tps65217s, ARRAY_SIZE(tps65217s), NULL, 0, tps->irq_domain); if (ret < 0) { From patchwork Mon Sep 21 20:50:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295511 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 6919FC4363C for ; Mon, 21 Sep 2020 20:53:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2AC7323A33 for ; Mon, 21 Sep 2020 20:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721638; bh=UZSwm/e0zEfFzdM0MNxVIfkj5nOvKrsVm/zxq4fzYww=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=gMqskqH0wkj+uDDnayr17g31yPSCjw4fc05k81pa6m2r+RlzG82FvcplvxNBSKIjF UTZ6tYqNIZOXm7ygC8+DbNMSHoevNeZ0JLper5JyzKQKIaiQ654gjDqirJsJTMiBei xCzewjj6K2tE0ig/MQUmlvEu8B9nmTmgChI1azSg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728278AbgIUUx5 (ORCPT ); Mon, 21 Sep 2020 16:53:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:60282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbgIUUx5 (ORCPT ); Mon, 21 Sep 2020 16:53:57 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 774E523A31; Mon, 21 Sep 2020 20:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721636; bh=UZSwm/e0zEfFzdM0MNxVIfkj5nOvKrsVm/zxq4fzYww=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G4EqMpm8dwJfiH0/OFENUbsnEDd8yv0o8YIiXRXmV7hGOpX2kFhpGvvmr+nhwa9+c ONBN/6AR2e7GykEliYGagq6uFkMgERgEafRXkm4Zo28cwj01mwirNkkuNQqoJJBIbP VOjtekvuz7TlDrRyd5utewqqS/nDgFgCvwNe/Df4= 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 , Sangbeom Kim , 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: [PATCH 35/42] mfd: tps6586x: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:09 +0200 Message-Id: <20200921205016.20461-35-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/tps6586x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c index c36597797ddd..18158fd8aa7d 100644 --- a/drivers/mfd/tps6586x.c +++ b/drivers/mfd/tps6586x.c @@ -550,7 +550,7 @@ static int tps6586x_i2c_probe(struct i2c_client *client, } } - ret = mfd_add_devices(tps6586x->dev, -1, + ret = mfd_add_devices(tps6586x->dev, PLATFORM_DEVID_NONE, tps6586x_cell, ARRAY_SIZE(tps6586x_cell), NULL, 0, tps6586x->irq_domain); if (ret < 0) { From patchwork Mon Sep 21 20:50:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256500 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 1C800C46466 for ; Mon, 21 Sep 2020 20:54:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D19FC23A52 for ; Mon, 21 Sep 2020 20:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721643; bh=fnjIy/DliToaumnIWwx3aFKqD96GjNIH8p0ilhLZR0g=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=KS+yQh/KyWCV+lWcfEuyH6XsfYF5xSH5R8ONnjQF/bItq3604Lx+ZYl51w+BMolVx 9YgINiiZRavLXsBGSxRJtSVhNYvB3OsILa+7DW+qbQHXEMJxxGtAZQnQy7vfnfmpIN gmcAdRnDn+Ofl5nYxJwd3RfgfPqirmdcucDDw8pk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728315AbgIUUyD (ORCPT ); Mon, 21 Sep 2020 16:54:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:60392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728307AbgIUUyD (ORCPT ); Mon, 21 Sep 2020 16:54:03 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 5EE5323A50; Mon, 21 Sep 2020 20:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721642; bh=fnjIy/DliToaumnIWwx3aFKqD96GjNIH8p0ilhLZR0g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=op3Iz1jq2I/88tVIcwClgxjqmyVNlSnThEWlklT/sk5RrdAWpoC78Mmcuzqb9nbLr Fipez+ZAle820HIeu8w9XiJzd6prizZ0iJ6ynEXOh8JMtm1j4p+kiCoLukC2cdHE/8 2mgh6fEL1UnXhnYpvefYz6hidft9GMfunD/ojh8s= 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 , Sangbeom Kim , 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: [PATCH 36/42] mfd: tps65910: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:10 +0200 Message-Id: <20200921205016.20461-36-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/tps65910.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 11959021b50a..d332072ee9de 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -502,7 +502,7 @@ static int tps65910_i2c_probe(struct i2c_client *i2c, pm_power_off = tps65910_power_off; } - ret = devm_mfd_add_devices(tps65910->dev, -1, + ret = devm_mfd_add_devices(tps65910->dev, PLATFORM_DEVID_NONE, tps65910s, ARRAY_SIZE(tps65910s), NULL, 0, regmap_irq_get_domain(tps65910->irq_data)); From patchwork Mon Sep 21 20:50:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295510 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 6393FC41604 for ; Mon, 21 Sep 2020 20:54:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1658623A52 for ; Mon, 21 Sep 2020 20:54:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721650; bh=mISvjVWy/3PrX04p7AO5hezHxm60gJxtzy2OAVHXCcI=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=YsHJDfOouP7jijYl+UxWtrYxhoD5doAeHLZudaADRbNwcXD0Cy55ReDwVr9N03qtH YNlcP2So5RrwwxMn6ZxfmmLi3wkDGa3zTGF+cp037HdWnn0xAz+oL3iY7x5EA4ftKe NJlIRcAHiUWiueAc5O3iNW+GFdRksWRCfnLP9/4k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728652AbgIUUyJ (ORCPT ); Mon, 21 Sep 2020 16:54:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:60494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbgIUUyJ (ORCPT ); Mon, 21 Sep 2020 16:54:09 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 2932823A33; Mon, 21 Sep 2020 20:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721648; bh=mISvjVWy/3PrX04p7AO5hezHxm60gJxtzy2OAVHXCcI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sAIk2m2MayapfJl3e4EzXanAlvMXQQ1Dk41Hbq8ZXTwKdF0jFpZi7ETJoxgVRbMAG 4okFlDrwAq3j5FwySK1rzFKk/wSbaRVbWV/RNTq5fVSL9IwlXNoWfke4owSibSxJyW 6dDUpuw4Fj8+PuapiM1BLIuuCLr4AtGO/sq+MXUk= 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 , Sangbeom Kim , 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: [PATCH 37/42] mfd: tps80031: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:11 +0200 Message-Id: <20200921205016.20461-37-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/tps80031.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c index 907452b86e32..c8ea8fbae281 100644 --- a/drivers/mfd/tps80031.c +++ b/drivers/mfd/tps80031.c @@ -488,7 +488,7 @@ static int tps80031_probe(struct i2c_client *client, tps80031_init_ext_control(tps80031, pdata); - ret = mfd_add_devices(tps80031->dev, -1, + ret = mfd_add_devices(tps80031->dev, PLATFORM_DEVID_NONE, tps80031_cell, ARRAY_SIZE(tps80031_cell), NULL, 0, regmap_irq_get_domain(tps80031->irq_data)); From patchwork Mon Sep 21 20:50:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256499 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 7F15EC4363C for ; Mon, 21 Sep 2020 20:54:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 42C4523A5A for ; Mon, 21 Sep 2020 20:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721657; bh=ED1zTFo33SaOTQ4JwOgJrrKPCNBVmvl9bBp0MCoLMy4=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=mOPeO2Qmxlrj8ybbVqfJkEpRWMKsCDQD8Gl+sDnrcsHxIE6eYCgdY1vutSIEiKMV1 uhlhPiY4n5AspwITwx3feOLyaKsZbVlPGoFURiYaDMIo0qzyY9PKmlQc8TOpKbveuX 0VLlfms+fbz7DqUvAoXoFAVT0UeqE4uBQgxK93zo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728335AbgIUUyQ (ORCPT ); Mon, 21 Sep 2020 16:54:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:60630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbgIUUyP (ORCPT ); Mon, 21 Sep 2020 16:54:15 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 5A01A23A53; Mon, 21 Sep 2020 20:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721654; bh=ED1zTFo33SaOTQ4JwOgJrrKPCNBVmvl9bBp0MCoLMy4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q8oTtEsVaOj+/qqDstPtGP5zM2+wRZwuuhGtx9hxNNH9eCkNFkuPw7vNxLg/kRxXw Ri/nDPKUdQytCbirEehPAs8CSnowW+IIgYOdpGt5fD0GCgeN9MEsJMGo7zDQXBSR8Z Z1qhGKPQLsGfO94xwPNQsyN7pPpsYGtTEiojk8dY= 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 , Sangbeom Kim , 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: [PATCH 38/42] mfd: twl6040: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:12 +0200 Message-Id: <20200921205016.20461-38-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/twl6040.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c index b9c6d94b4002..702f9e216d42 100644 --- a/drivers/mfd/twl6040.c +++ b/drivers/mfd/twl6040.c @@ -794,8 +794,8 @@ static int twl6040_probe(struct i2c_client *client, regcache_cache_only(twl6040->regmap, true); regcache_mark_dirty(twl6040->regmap); - ret = mfd_add_devices(&client->dev, -1, twl6040->cells, children, - NULL, 0, NULL); + ret = mfd_add_devices(&client->dev, PLATFORM_DEVID_NONE, twl6040->cells, + children, NULL, 0, NULL); if (ret) goto readyirq_err; From patchwork Mon Sep 21 20:50:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295509 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 9EC7BC41604 for ; Mon, 21 Sep 2020 20:54:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6DD3123A60 for ; Mon, 21 Sep 2020 20:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721668; bh=qkY9nerV/zBZAaqQ9Kp4zfQVQqMDDSlJ+ScIovfsCTA=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=jEMBOUyw+BbzJx4MC8Z0enLWzAc3gm5aO3kgCqNqyFCz2+V8lU62GTI08EnyBOGpx kIxm1v3z8tO/KfZ/DjBWA1vDX2nZAwdG0B8y8Ma5DVBYD7u5MakWvyw0PIAPTdMT6G VMw3YSmysZXKO6W3zgBOEQKah/FxTu5ng6lEH/Q0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbgIUUyX (ORCPT ); Mon, 21 Sep 2020 16:54:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:60778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbgIUUyW (ORCPT ); Mon, 21 Sep 2020 16:54:22 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 C579323A58; Mon, 21 Sep 2020 20:54:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721662; bh=qkY9nerV/zBZAaqQ9Kp4zfQVQqMDDSlJ+ScIovfsCTA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b1oRNhPsy7yuZYKs3yURLkZfFBId2wTilCqKQk/MgnVQ7PhnFl/bZ6sUI3etBgDRI N8RAQxSH2LlHFaTSmbSUL3wxA5WSWUiggUxvzayWNL6vUiHKcIQ7TN4vUEkioGNZqR StuIXVjxTjTn1HEAf1I2JRgulUDsNRVeU1m1E6Rg= 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 , Sangbeom Kim , 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: [PATCH 39/42] mfd: vx855: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:13 +0200 Message-Id: <20200921205016.20461-39-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/vx855.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/vx855.c b/drivers/mfd/vx855.c index 985f81c1739c..a53fb4c1ebdb 100644 --- a/drivers/mfd/vx855.c +++ b/drivers/mfd/vx855.c @@ -86,8 +86,8 @@ static int vx855_probe(struct pci_dev *pdev, vx855_gpio_resources[1].start = gpio_io_offset + VX855_PMIO_R_GPO; vx855_gpio_resources[1].end = vx855_gpio_resources[1].start + 3; - ret = mfd_add_devices(&pdev->dev, -1, vx855_cells, ARRAY_SIZE(vx855_cells), - NULL, 0, NULL); + ret = mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, vx855_cells, + ARRAY_SIZE(vx855_cells), NULL, 0, NULL); /* we always return -ENODEV here in order to enable other * drivers like old, not-yet-platform_device ported i2c-viapro */ From patchwork Mon Sep 21 20:50:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256498 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 B3FD4C4363C for ; Mon, 21 Sep 2020 20:54:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 74FCB23A5D for ; Mon, 21 Sep 2020 20:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721671; bh=ukULXBlsraomS8n4zvGbNnhhyrJ6HJH7ioe4zIsa820=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=idmlr4/Uh9uX3e+pzIUPWG2tBpuVWS0AYWxN4lCcc9GwEL9yxFR4+6p6Q7o1NP+52 IKAc8GYjB07PoTQSgf5qnIKvVdh46NB6Vm/RWV2Zwi2GceagmpzNByphgaezRf8/xJ DqngN/QAl1UcxWE9rWqPxOD7SZcm+/SVQdMKTq2A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728358AbgIUUya (ORCPT ); Mon, 21 Sep 2020 16:54:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:60886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbgIUUy2 (ORCPT ); Mon, 21 Sep 2020 16:54:28 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 B46B223A5A; Mon, 21 Sep 2020 20:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721667; bh=ukULXBlsraomS8n4zvGbNnhhyrJ6HJH7ioe4zIsa820=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aUk81OtZI53dO9pnRCKq89k1qzbrAhy1/of9G4MrZO1+c6NGjUbNMAwdZPN7/Byoe CWQ/NZ4ED6I22EFJgKx1Q/FKWf5C2setnagzNrR4LbzSujnQG8h39hvhRa0ZgDdQ5r 2HkOrK37NqS1Yr20cu48+cLEFn5C616YH0DH4Ir0= 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 , Sangbeom Kim , 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: [PATCH 40/42] mfd: wl1273: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:14 +0200 Message-Id: <20200921205016.20461-40-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/wl1273-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wl1273-core.c b/drivers/mfd/wl1273-core.c index 1ab5e15a65eb..0af1322fd393 100644 --- a/drivers/mfd/wl1273-core.c +++ b/drivers/mfd/wl1273-core.c @@ -214,7 +214,7 @@ static int wl1273_core_probe(struct i2c_client *client, dev_dbg(&client->dev, "%s: number of children: %d.\n", __func__, children); - r = devm_mfd_add_devices(&client->dev, -1, core->cells, + r = devm_mfd_add_devices(&client->dev, PLATFORM_DEVID_NONE, core->cells, children, NULL, 0, NULL); if (r) goto err; From patchwork Mon Sep 21 20:50:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 295508 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 F2926C4363C for ; Mon, 21 Sep 2020 20:54:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B0D0723A5D for ; Mon, 21 Sep 2020 20:54:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721677; bh=F6cOtWeGn0mxayABknOKeGdwp5N8qh+emK6KTJA1ZSE=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=dfQfgk/HeTYp/z1N+Mh++l/jXlPNAXqPHwSw3ECGe66w1YQ/FG1rn1s4KVdb0iCJE CDjelWriG8DgKZ+od0unNmvO/gPXAtXrtfH2xOz5Aq5weOi5b2KqK561xNSoNVucpj nrwyXWSBmJ2ZJqCgF1VgZkev+gdKc27nI4LyHh+Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727237AbgIUUyh (ORCPT ); Mon, 21 Sep 2020 16:54:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:32768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgIUUyd (ORCPT ); Mon, 21 Sep 2020 16:54:33 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 2E17423A59; Mon, 21 Sep 2020 20:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721673; bh=F6cOtWeGn0mxayABknOKeGdwp5N8qh+emK6KTJA1ZSE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ydaBtJcuMZ/qOVb+Af7D+CiD0bOmctQ01XRCj4XsOvNoythCcJ9Pu2S+e300mDVqP F9rzp9au851T2DC3sbvtRn/QeHy3dHfJ9a0mqWMx1DNAxrwj4ZhdSXWYHMR6FsZCjk v2VfL7f2DWubt8PdtRPwTF3a27xwbrS14gAAIR3k= 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 , Sangbeom Kim , 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: [PATCH 41/42] mfd: wm8400: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:15 +0200 Message-Id: <20200921205016.20461-41-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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: Charles Keepax --- drivers/mfd/wm8400-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/wm8400-core.c b/drivers/mfd/wm8400-core.c index 0fe32a05421b..9efca6f3fbb2 100644 --- a/drivers/mfd/wm8400-core.c +++ b/drivers/mfd/wm8400-core.c @@ -38,7 +38,8 @@ static int wm8400_register_codec(struct wm8400 *wm8400) .pdata_size = sizeof(*wm8400), }; - return devm_mfd_add_devices(wm8400->dev, -1, &cell, 1, NULL, 0, NULL); + return devm_mfd_add_devices(wm8400->dev, PLATFORM_DEVID_NONE, &cell, 1, + NULL, 0, NULL); } /* From patchwork Mon Sep 21 20:50:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256497 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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 9BD52C41604 for ; Mon, 21 Sep 2020 20:54:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5BE1623A63 for ; Mon, 21 Sep 2020 20:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721681; bh=+j1NMQRXfo7WK2NT2Ni/FTUg+lHn9ZbPIBnsqtPzjOw=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=pTeYlU38Y3SUxHIqawigL9973MI63aA+hBPLSizBsb4aL+12CIXX5isTrD7054gHv Bf/JlJdUi9m1FZ8YPHKB4Xp7zFPncjgqVLdz4rUuYS+TMI5lbzh7XKFaKC00dJrLIT QWHqvi5MFdnKHejMX8WlW8Uj5iY4NhIfyAptj+tw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728084AbgIUUyk (ORCPT ); Mon, 21 Sep 2020 16:54:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:32884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727805AbgIUUyk (ORCPT ); Mon, 21 Sep 2020 16:54:40 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (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 D69D423A51; Mon, 21 Sep 2020 20:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721679; bh=+j1NMQRXfo7WK2NT2Ni/FTUg+lHn9ZbPIBnsqtPzjOw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gRJdut3DApPeUrKiEj68rx3t6kxSWjs0SuxElp0OIzIdcYqCpKysvAy9sf9T4Hh+1 PywkBXNNVMFMe0QfYyNunt9yjEj00M3L4qEPg2J/ONVwP7z1e7aYwNQg9MdZZ+Zf+P ghm7Sk5YGXhv4A7ZDI4EYl5awplpf4JmRIiNfiFE= 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 , Sangbeom Kim , 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: [PATCH 42/42] mfd: wm8994: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:16 +0200 Message-Id: <20200921205016.20461-42-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921205016.20461-1-krzk@kernel.org> References: <20200921205016.20461-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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/wm8994-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 3b2b93c5bbcb..5a8d4cc00cc1 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -578,7 +578,7 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq) wm8994_irq_init(wm8994); - ret = mfd_add_devices(wm8994->dev, -1, + ret = mfd_add_devices(wm8994->dev, PLATFORM_DEVID_NONE, wm8994_devs, ARRAY_SIZE(wm8994_devs), NULL, 0, NULL); if (ret != 0) {