Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3441577pxk; Mon, 21 Sep 2020 13:54:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmdiR72+3xo0eX404y9QM3OiMexc7T+FNlNi2tL2KkBApIptVuVlWrODhw0C9BkWWmJwfl X-Received: by 2002:a50:cdd1:: with SMTP id h17mr822378edj.94.1600721648989; Mon, 21 Sep 2020 13:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721648; cv=none; d=google.com; s=arc-20160816; b=JxHHCOScF5ELkiDoVIe34YrAAjTpSlE0HX8JsQcDCHFZmYZajp/pxf4wy06y6+cIAJ C+qDZqkNwa81OjiTWSgMQgkSegJT2L+6GRBLtMEB2aW3Gx+R/uimP7l5SNhoZoI+7JsE QOsSJamX1tPmDL9MDSR4VfEHHPRpWs0xT+mTWrF/655jSAs6yoSLGF5sHozRJ5GzO9fA omLAJWJQUZwYdvbdPuqAyaLbgzP2BBbhTf/zWUqgG/qoowUYPCKCJa3aTwMqLGJM4HTA Vfyqvmk5O+kceFQIQdwd+WYQ0IbprEjVTdwjOtc08r6IoZFMkdGzK+JjjF5rOIHRWAX2 LbTw== 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=sX7BJMC48bYx13kV0R8lBXvnPeeE2viiSlQC0KF9ZlE=; b=zUESfPHxGF8yCaFu4zn2fKtVMf2bFRYU85bfmi9i4HAEhsoul3v+fWq0BfWZ8pCcho 3VoScBnOsjGhIW+BenpYXMMqyh7Jazxxyd9VfmYFuNWu+4nP0o4wx6SwtQitPuZaP1zh 2Y323S7Cg6uBI9YTiPS5jFd/cNRo0NU6J+OnwE9uaOpllX4vVYpTLzMZQgO7BjtskQJk L/l/XS3x8DWABHOP9Sab2igfyzw7Ab6rmlg5KrKLnXnzRB2CthAp4OH0xK0Jr0a//y/a iF50hlHziH6wvNGpof+XZ26K9rcEl1jebKk8KGbrF5SgiamBzsWHzVKbeFs2PPVbNNLM HEgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Zhmxju2m; 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 cw15si8990237edb.299.2020.09.21.13.53.46; Mon, 21 Sep 2020 13:54:08 -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=Zhmxju2m; 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 S1728116AbgIUUwE (ORCPT + 99 others); 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-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/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; -- 2.17.1