Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3443589pxk; Mon, 21 Sep 2020 13:57:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ+OLZsz1TLLwihz7Jvi/9FSv10ElbXjdu08DDczGxAWTAp5hez4PxwZAFnn0y7guP0Dj8 X-Received: by 2002:a17:906:a947:: with SMTP id hh7mr1366966ejb.126.1600721870589; Mon, 21 Sep 2020 13:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721870; cv=none; d=google.com; s=arc-20160816; b=gYkwyXvTw7kNWihhRVAnsRi80oDY8Kmekihg/9Zp3eQRwPCdIgmwCHPGubC/o7aNfa lV4pPnlClp821umi16mjrbGN4VP82aNSOv3uRqaypXjgXgwrtuUYfFPqbjKYHJwZ0y9s 9y/o+L6R3gz/3eiMAfuKV4SZNlnq604o0C2nhvn1eLOEDPUA6HqVPtfj4QRuMP1GRh11 eLw74aN3O4ubQJCHdelmRiGmi7oFoV2wwzFE/fr5NgC4h/M4SAv2uA7m9c2Hl1cNcbsM 62zOGlys24YnTNE66PN9kXms/iPtMyO2m0+RKNyFuT4109ItdWsTcrXV9uamhO3Lu1sP pqwA== 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=aVGo2Wo1kRwwxbS+BRQq6ZHOEvCxLK5AzMGGGh/oDU0=; b=HEEcW5dx9FtS8BdakYnO2Vhhm1OQeOu4t/ocMv/oFIOECT5VK9WiXumITsS+isRrFA rzfgtbOZ7xUYPGWKPKnBdGKavZbQW8A2ej19wiDVMkn9WI+zMh2wN7GPxkzvYpHeo7Kx Q8XKTvoqlxoTps5lI9kmVy7Raog3hOG2wpZ4Y5B/7CzHoQvp0uiHH9jzcSlDdbynR2eV 1gB1U/uKM0l5qH8E4XW3J5R5H0RgYBrJMG1erOiTe9DYDz2v0OMTTbwFHb4r26jU6RPH qEmJqVA02C4ncGjca76qs4tKNyhnnIHr8mb1AP5zLf6Aih3/kkJ/ubsJ3pld1hjGacKj Y8ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2k3YGd9R; 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 c11si8990994ejb.541.2020.09.21.13.57.27; Mon, 21 Sep 2020 13:57:50 -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=2k3YGd9R; 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 S1728573AbgIUUx1 (ORCPT + 99 others); Mon, 21 Sep 2020 16:53:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:59580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbgIUUx1 (ORCPT ); Mon, 21 Sep 2020 16:53:27 -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 52C1123A04; Mon, 21 Sep 2020 20:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721606; bh=ma7yjwLc8yk7sb1IlZOrRcZ6FpTnWzSvH+VuumuxwNM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=2k3YGd9RjzvwF9ecI0gy1b1sHXUvUTRGToUYpjIDMjv5AAMb950oJIbrQSHseBM5V tuvjNHzPiPhTwKROuWFZRxkakmU1z6b8NbkYiEDexTj7uq8ofJ6GzAlvDUtlntDpfv fwU0q0OSV7U44sPJbQvFP1S3eER2tvorU3jZ7cu0= 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 30/42] mfd: tc3589x: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:04 +0200 Message-Id: <20200921205016.20461-30-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/tc3589x.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c index 7882a37ffc35..22821112cc6b 100644 --- a/drivers/mfd/tc3589x.c +++ b/drivers/mfd/tc3589x.c @@ -287,7 +287,8 @@ static int tc3589x_device_init(struct tc3589x *tc3589x) unsigned int blocks = tc3589x->pdata->block; if (blocks & TC3589x_BLOCK_GPIO) { - ret = mfd_add_devices(tc3589x->dev, -1, tc3589x_dev_gpio, + ret = mfd_add_devices(tc3589x->dev, PLATFORM_DEVID_NONE, + tc3589x_dev_gpio, ARRAY_SIZE(tc3589x_dev_gpio), NULL, 0, tc3589x->domain); if (ret) { @@ -298,7 +299,8 @@ static int tc3589x_device_init(struct tc3589x *tc3589x) } if (blocks & TC3589x_BLOCK_KEYPAD) { - ret = mfd_add_devices(tc3589x->dev, -1, tc3589x_dev_keypad, + ret = mfd_add_devices(tc3589x->dev, PLATFORM_DEVID_NONE, + tc3589x_dev_keypad, ARRAY_SIZE(tc3589x_dev_keypad), NULL, 0, tc3589x->domain); if (ret) { -- 2.17.1