Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3443626pxk; Mon, 21 Sep 2020 13:57:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5gm9dHWis4Lb9/SfP/qKhivyejd+T3uYCizIub0FOjmAbz+hnhL1z3uqtV5qVxujo3IWA X-Received: by 2002:a05:6402:3c8:: with SMTP id t8mr774324edw.266.1600721875586; Mon, 21 Sep 2020 13:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721875; cv=none; d=google.com; s=arc-20160816; b=g21mbmd/JpQWF2b6teL5SUqH+k5mZnu45vM7w8Bnb1dQ9mD1iudyKOp1nyzPTlNNeJ O4AyECzC/d8NKBoD6lU7Lj7CiiklCQROUW4Zm3ZNBrSUN8X1prjh1jBSr/N4CXodn7Z8 a0w9WqBRWe9pi8OFSxRyuJfcaCIC+iiSOBIYQFXG+4SjsgRegTmlUNfevPdYgNVhPYPf kmoN82c2kyiajh5ysLTqwGKQ/Taraibji3RGzCBi5fRKxf0fF1rDam4gvNeMTEn1U0bC wMxh+oytiQfuuexNZjUyaR8ur+og8CbJ4a2YUku6K2qQAI3sSQoJ4JgZDiBAwyfsszVc m1eA== 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=jIFpWGJV1pihst/tFMXvYWZIQDz1TQOTMq5oZ1RTrhI=; b=xUJ/YDZzL9gpwm8MCdExlQTr4AxUqXACTwNn6jjF2YPaCvphgNQLvXJ/eV/bN0izYt nFXYm5J++qyu/9g+lczSIEPPixYq3PqtvyW/VE8l3cXi3XNXqYUff4lLSEJQnUBQHyyN JnwRPrrHFy3W9uYn2n6IrmzHbO609roaZUQyb8/2kRhOqGtAbVNpis2thcggFhfuawhX ubWjLWtdTw93L44IvKLP1Wi+T7sMKZNOoVvWkL5XjRMTCFXDu40UvnewfR61I7JDGhQu 3gPv4djzEZUz52Y23k/mWWnKFnkQCi/zpNoplI6j1wW1OcJ+e31U/nXvVHsPHXa0yYQb FyHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0b8YLwhS; 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 v26si8650342ejr.748.2020.09.21.13.57.32; Mon, 21 Sep 2020 13:57:55 -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=0b8YLwhS; 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 S1728599AbgIUUxf (ORCPT + 99 others); Mon, 21 Sep 2020 16:53:35 -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-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/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); -- 2.17.1