Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3442886pxk; Mon, 21 Sep 2020 13:56:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQRvmFOrXY+lytQ2Gw/puaQ8vjBo846Vzc0ZVmfbyHIpxdn5F2boYKDBG7RnJJoOvw0z/Y X-Received: by 2002:a17:906:cf8b:: with SMTP id um11mr1446410ejb.540.1600721802423; Mon, 21 Sep 2020 13:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721802; cv=none; d=google.com; s=arc-20160816; b=bMK91ttGeFpfgYtmoWV92SQEw0RjfEtjXuWLeP6yWk0FD/197LyZiBv6pVvGxM9qdW DWJnxlUN8t+ZKBKOrFWtRVpvNk/2pscBwqA4Fm6g7eVyGzYk1TIkkV7ZB2eZmfFS90i5 Req5g/sO3f1ho49XDzhctsGhOOmmttLhT50VU/ggtcHncOh4xLD/6AxcbYSkR4UIDMwY FSaPO/zv93j/GuHD1tRJF3L2y9YTbihFAGZyG2K6mZs5BDwWGhuBPH1lqEqH1qg/1aCN 9F5onytmAV2wwGmWPhmmiOnpUTvhw6EEWaNEdGTGNdmXhqBz4bvN++mXhqEtdI8W5eMI LsXw== 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=yrLIjGOZbGdvUQxpt5vNYAx2o3h2s3c5ZJd4pXG+xsk=; b=HJ9mSTDRdtDMB6h9aQGNANieyRGo/WQ9A+le0t6KDDSbL23STsoolIpbHB9fmxmVj4 5RiDInuoaMmTdEoTk8Vru8zYEXTkJZNkzpyohU71sZ7pTW4KAtxMN9vxnOp0FnULqPQY 7oe0QPeumoIFyiO7L+6wUZil5g/xDkrU5a0V3iv4XNSHURWmqWCcrWgvOI2sMl0OvxrW 8XVHwk/QGy5aoHooS4LPd0Z9UCU9ZeuYaXdeOpdbx9wEh2MyRQdCw+uGVAALW43LEW22 BTqhril8y7vQ/bPGlA0xemufT+DBCADgq09AExcPNoqTzjaxPzNpczstN6Is3CZ4C66Y KNdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b1oRNhPs; 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 u16si8697287edq.561.2020.09.21.13.56.19; Mon, 21 Sep 2020 13:56:42 -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=b1oRNhPs; 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 S1728678AbgIUUyX (ORCPT + 99 others); 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-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/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 */ -- 2.17.1