Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3443432pxk; Mon, 21 Sep 2020 13:57:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgNzHebZ4gutZKDdV8UmDCNW/3c1xsjVSiwtizr95VyBjWPKlRyyYagxNU0uyxdlhTET7W X-Received: by 2002:a17:906:4cd6:: with SMTP id q22mr1351189ejt.139.1600721853270; Mon, 21 Sep 2020 13:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721853; cv=none; d=google.com; s=arc-20160816; b=XO6JXH74StoCP3OjnqlwMo3RvXx2l4rfjEAklnHAVJbpa7ML+uzacsqcxaoBLGipcP Ewli/uaCdC5o99vFhOpHJzRAT35lyBtb7wBfJB7SEM3RaaHHCUw9AD3q3fXvwywSY9mw mM0Y4d7+3pQyG0D7LwuxTKx3S/zcCkuPlu7dk4l7fYUKn6cpGXx8yQGtMkICjU5gaJsi FgM2WSwuOHZFdIzfluzGyEmijchXPBupvmgkVXieGCORlWkT3dzTWXhDRJ7p3oqGVJ4C PEgNOXqayO3TzqnkedJb/H20OPt2RPk8F1p1OtFtbXmtvTM5ciipOovsfcNF+kEhFGVr oPIA== 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=7+KLx150kFYSr+FE0GyrYp04IMWVIY5/VkUXFwCvnQc=; b=shB1EkD2+q33Qk+zIBB8WI4KHwwXBzM4Rbn3SNYnm/uGumKos2f2ba7KB+TLoPAevJ HbhM8ADnw/muK8mNXfH4O/Or5IccLWNNpqHyn3ZBpBxo90qxj4My3qAahOdQZn/w47Lm S0wYp453lGjFMKJoTN1Y/8AJ5D0Tb68ZEhif5wP4gyGffYwcKeTIg5WjaiLRn3nQkOEy F4H4L9Kk8zKXVQxUtlOEdTp542ik5iy46vzsYK6tAI6SwhLbR6C759m9Fl3Kyz8AcP/A LHI7mCRGf533W8UljyBAFk5Ddyvyrgmt0nH4eLbkAxjK3kBMH8pOM2C1sQn8Vc67O2A5 C0jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=efwURbUG; 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 j19si9059894ejx.272.2020.09.21.13.57.10; Mon, 21 Sep 2020 13:57:33 -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=efwURbUG; 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 S1728623AbgIUUxv (ORCPT + 99 others); Mon, 21 Sep 2020 16:53:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:60118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbgIUUxv (ORCPT ); Mon, 21 Sep 2020 16:53:51 -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 997AD23A01; Mon, 21 Sep 2020 20:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721630; bh=aZXVcIoMqrW13nlRYEijDi7+xye+k+OAkECDJmkVme4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=efwURbUGDX+x+IN9vSqH/EFBgi4g4CBP4Jic2BGowe3760wOeivNY/hBI1LHdrbLd vnfkWxJ77AB3lbiFzLL71tzv0KtV/F8cyKg/sU2HMY8yOj7r0nOO/MexTweehhVV3I OPSyStT4P5Hg1u3+rNGJPiN5UWetYc/d5c02xRGw= 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 34/42] mfd: tps65217: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:08 +0200 Message-Id: <20200921205016.20461-34-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/tps65217.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 2d9c282ec917..ef941bd611d2 100644 --- a/drivers/mfd/tps65217.c +++ b/drivers/mfd/tps65217.c @@ -351,7 +351,7 @@ static int tps65217_probe(struct i2c_client *client) tps65217s[i].num_resources = 0; } - ret = devm_mfd_add_devices(tps->dev, -1, tps65217s, + ret = devm_mfd_add_devices(tps->dev, PLATFORM_DEVID_NONE, tps65217s, ARRAY_SIZE(tps65217s), NULL, 0, tps->irq_domain); if (ret < 0) { -- 2.17.1