Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3444121pxk; Mon, 21 Sep 2020 13:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyVV5DxXii/mvd3pGWXRur9lSB0UBENRMat01QpFqsmAQzfOcV3YRwNILhcGEhf5KLutvM X-Received: by 2002:a17:906:8543:: with SMTP id h3mr1398823ejy.258.1600721927735; Mon, 21 Sep 2020 13:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721927; cv=none; d=google.com; s=arc-20160816; b=eijCT/uDgpxo3/Qw6K5cxOZCzK8zrgiJXeGdoByfLROKRq/RceeNtjN9olTtM3kt1o Kbk/3wTkhXISv70myN400jKd8oThYUt0jw+7m+sOYOZlYyn68ZUhZPo1pZJPqO+7IdSq WrEAhepyuuyviVoxWjnGHcXUPMLno6bIaRLnI9cQ4SmaQ9O3ropfSMPV691cgluzPeXm Hs0uYNnk9/t7ucfaYj9s0oHGjzR67IcNZbNdJrZvLqcCE6yc+ZhED1tRTtPY9OBZJzH8 w/x4d9aA/t4EAG49RhD4Q9zkifbYT/ieYkPVIG5cTkG8Iu3jdyIOtSHGWjWoq0nHcamI AjnA== 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=9wza2orwowEILstbfOjrpg+3tDP6rarLGgEI5JsOwSc=; b=wJTORhIPFPsUxBAwy/HJ5JIg+wsylrQbtMy6rNofO/V/40ftsWJbSPRREvvo9wCAth gp1dVYrwjwPisiNyB5XwV1EId7LslG4xEW1MBNYRzq9UytuwlPDv7nW3CcNfzmGfMEjH iYqjtuBgHXhrd4pJFR0PjmmJ5L4MX35rtR9y+Sgd3LAt6i297L3ucUBspy9DA6ONqerW 1bWuA1+Qpa0DeRLFrv73ZLMCs1s4qdAJAf94WO/79qt1ptU9ANYU/nvx75pEmSu4IA5x LOND/aqCZiXXvxDx3CpmzDXXaZp4FBlHPoVGKLSJjcSbxAdD0Hg0wPB79f619Rba2Ifz N4jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ydaBtJcu; 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 r7si9046510ejy.514.2020.09.21.13.58.25; Mon, 21 Sep 2020 13:58:47 -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=ydaBtJcu; 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 S1728384AbgIUUyh (ORCPT + 99 others); Mon, 21 Sep 2020 16:54:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:32768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgIUUyd (ORCPT ); Mon, 21 Sep 2020 16:54: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 2E17423A59; Mon, 21 Sep 2020 20:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721673; bh=F6cOtWeGn0mxayABknOKeGdwp5N8qh+emK6KTJA1ZSE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ydaBtJcuMZ/qOVb+Af7D+CiD0bOmctQ01XRCj4XsOvNoythCcJ9Pu2S+e300mDVqP F9rzp9au851T2DC3sbvtRn/QeHy3dHfJ9a0mqWMx1DNAxrwj4ZhdSXWYHMR6FsZCjk v2VfL7f2DWubt8PdtRPwTF3a27xwbrS14gAAIR3k= 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 41/42] mfd: wm8400: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:15 +0200 Message-Id: <20200921205016.20461-41-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/wm8400-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/wm8400-core.c b/drivers/mfd/wm8400-core.c index 0fe32a05421b..9efca6f3fbb2 100644 --- a/drivers/mfd/wm8400-core.c +++ b/drivers/mfd/wm8400-core.c @@ -38,7 +38,8 @@ static int wm8400_register_codec(struct wm8400 *wm8400) .pdata_size = sizeof(*wm8400), }; - return devm_mfd_add_devices(wm8400->dev, -1, &cell, 1, NULL, 0, NULL); + return devm_mfd_add_devices(wm8400->dev, PLATFORM_DEVID_NONE, &cell, 1, + NULL, 0, NULL); } /* -- 2.17.1