Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3443946pxk; Mon, 21 Sep 2020 13:58:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+LOtmlSJ395B+MBDWUbPurtKfuHcN+qVNcnmbWtrpzXU0qRAdWbOzvq2hCY05xPkJGEB5 X-Received: by 2002:a17:906:1192:: with SMTP id n18mr1405489eja.515.1600721907389; Mon, 21 Sep 2020 13:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721907; cv=none; d=google.com; s=arc-20160816; b=Q5/vTNpBfUiFK2keCwr5k0VURmZB0Ew2z2Y+SbX4vXD1umXP7uZVDX6zXhD0Gb+IO3 kXAHHV5Hu8hxk9FLRn4LVVhAIjVd5Jn5A5mhC5kMJXP+hBIWZshdr6PDzPeqGvMSVjsy T32Urdw3Y6Ot3oM22Xea0AehybQl5CLx0rm5AQJ8rAeCIEL61hM2iCreDV85t83t5Bu5 mXI3kLG+WzxFYPdrisXTyWgO+0FGWys7W5J7b0Ods1RBld9rRw2AlNnKE0L07/84UUfF 2b1xJD+KJ665NX9zOwlN5e8exMvBSHT6tzT/eP9gk1lNkYYfSFjwH2zS+HJuT5S6KuaK HWnQ== 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=PLgdJMCcaiMXvlV0kkFTf3ObdLrsB0NK+z2csib/W0c=; b=ahZfJhtVjHGTjA+B5ldd6W0qEr4asLQYikETNu+PF0CJI6mB2d2TEy7e/JzGTUemUW jx+Wx9dXSJz9bDHSeiq3dPaB6F9IGLZEdQNs+xFVjxKdp4ajvORVlErnN8Qx2slyzS2I yCS2cFAWNNwU74a/1StmnBbBvxzEN7ApbsCPn0aTdg+sFHIRXwrkqhEzskdO2B1Ivxol TzjMuzdfJ61XD4EuHnvJ7U0NPaAyX0vSUvUjYv2XQi0zsXods1k4j5+mhqFlvSLLlbuC W98eoPhefoyHWkbNRo9buIrS6uKUU6yGmjTMZt6xVLlRZCC+kKq+UjiPEnPyckRIeNZ7 dJ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sAIk2m2M; 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 j5si9014775eds.503.2020.09.21.13.58.04; Mon, 21 Sep 2020 13:58:27 -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=sAIk2m2M; 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 S1728657AbgIUUyJ (ORCPT + 99 others); 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-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/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)); -- 2.17.1