Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3443128pxk; Mon, 21 Sep 2020 13:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMm1BduKWW5cuIPKi4i4IU8JhFPLckaqPyElFHOPXR4dbv6dxegB6FbaqTSF9z6NwY36hC X-Received: by 2002:a05:6402:1697:: with SMTP id a23mr770468edv.195.1600721829019; Mon, 21 Sep 2020 13:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721829; cv=none; d=google.com; s=arc-20160816; b=Imtp3svMqepCaf6Vek1qvAvAhNxdOHw+8HDtuW1mTIuctmRRdjjLBz0vnIt86KNxac YpEA/XQDVkES8aBdEXqA86UcnfI4M340IGZSy3edGSY7AKNWZQSbPgQWVhrcgoX/EYxH 4FemH8xLkRO5mWc5/VSJFg9eYLYABVsXHA2Fq2PEG48kZmE6dKyWsyW+o968sxnov1nV bMYRrFABNi2UZpr7sYnlGi00aOTpO5ccSAelIxJBGgPZDeon39jW/wFtkkWW4OIjwHr7 v7LubfXcm4bY+jKmGT3D9zqZtxEBn9DwFoZxyKXSuMTbrsWgwN7al1mau9OIBgOMKdfv AmGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=CSXOXvGek1cXSsGJXY5udx+SyNJVH8DmMZuw/fA2nXw=; b=LMXwk5y2A11dhFfmveV+n/H+2dyC3WYQvIaUmLjj/0qRP+T5OSwtpBIMKPcK6UY45U kN4/TVM0taOzTx/69h5D/vYF3VMSlgIM7GGPO0fBIyr8K+jaqQGLs7ZWGYxS3Dl71YAo G1LP9Ds8x9J2MkiUcyfoQa2DeDC8XuWs18+YYYJQKjjP5FkRoy/KpLyL/EHXhecDsUxJ mBj2v7UHbtbmgSDme46CeEfHx1mUhWRVUhaOLl+8FSvcPx0GRNNNLWgykXAOnh+g8t65 i3PDJLDaeIfi19N5P1xXuPHgoZdkqiaiWkOjj/LipVr0PYRmhtSakJPYO2T59+7yKA6U jQ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E+RGMGs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si9396271ejr.213.2020.09.21.13.56.45; Mon, 21 Sep 2020 13:57:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E+RGMGs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbgIUUxA (ORCPT + 99 others); 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-kernel@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; -- 2.17.1