Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3442389pxk; Mon, 21 Sep 2020 13:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvXf46eafoxd14gBqHnJdDR3HwkqQQjg3YQ2HN7c6giagDdCZyxrXlx6fyL8deOyeSIADu X-Received: by 2002:a05:6402:6c1:: with SMTP id n1mr771469edy.215.1600721744443; Mon, 21 Sep 2020 13:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721744; cv=none; d=google.com; s=arc-20160816; b=fDPsO5ttl6YTYMXdJ9Ga7/IldfDv5r+GX3EnxX/PbrlRisjKyc4E8cc53jrWM3r1eC EBon+iMyoa1do7f/reEG3p8o7IZAbf6YvUzKgWBSLT1OEtfOLUft8gIqQhyqJA8q/QqK RvYM8ZeCa9H8LrWwcZGFu9GcXvjK1R5fjvZ6/w9TP30mQZYk432d3GMfitPiTraQWiT3 X6OSHw495elm/UJlsiNYCujhtBW7QH8Bq6iIpa2FQ+PZXvTS4ARBfPJFM2RC8100Z5M9 2dM0nv1sdA6EH352yaHENT/Svkh4cLwqpSxHKlhmtjo/9LCiEHQ3dYQztnxCzO9oufep A+fQ== 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=a9etAiyVMdqP/GCMxRyGc08MtNVRC5g7BEN7vO0BWN4=; b=EKXfiY5sLOzFMNgjWKddvOr/NS+ybFzQOBzjDUJyIN0cgUH+pcLILEztwdbPE1lLVl 9LsnQzRw4WKAzsxBpRHxfgE+o3/wmmtd7Ssz3rJf2rqPzYxyPEcxd2oZRrGwim9FfkW8 vVqFV678XvAyA52hsQy9uwl8gNIkMaKmZProH53d94cvTqxD7K1nEKR16H9xQrLO/kzr yD9aVWP5PbPbKDgVHsGKvd8Y1odlnzuL7XpiCfpONeYuTX5sVpVjX6H93dmtv9uvVts4 2KyUD7xPSuUUbcLqnsrnr1D8ZkyoqVjl7ZEDdHqD17TpGNfP84u1ly9mvhb6e8nQT8gd 1ukQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rd8IsRc2; 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 f26si8763713edx.455.2020.09.21.13.55.20; Mon, 21 Sep 2020 13:55:44 -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=rd8IsRc2; 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 S1728443AbgIUUwQ (ORCPT + 99 others); Mon, 21 Sep 2020 16:52:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:58158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727760AbgIUUwQ (ORCPT ); Mon, 21 Sep 2020 16:52:16 -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 E2C26238EE; Mon, 21 Sep 2020 20:52:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721535; bh=S6uz75N+KTMpHiajTgSe32w054iMQgvcEv/GqGeXyV0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rd8IsRc2CoBBPrLDNCJ34VaU0TbmbAh5AtFtGtXUAaMWZUSAHDYGKWtLY8xI9s2mj MHu/2IQlknbui7AnAT/4Do1Ce3GZQzFUGJ70N2Mv9rSdndxUCNasHrLBQZ2SU4HL2M NIgDeswVVDbaAOpfTJqbz24GGzmDeysSkKlzRheI= 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 18/42] mfd: max77843: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:52 +0200 Message-Id: <20200921205016.20461-18-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/max77843.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77843.c b/drivers/mfd/max77843.c index 209ee24d9ce1..da9c32c44e3d 100644 --- a/drivers/mfd/max77843.c +++ b/drivers/mfd/max77843.c @@ -148,7 +148,7 @@ static int max77843_probe(struct i2c_client *i2c, goto err_pmic_id; } - ret = mfd_add_devices(max77843->dev, -1, max77843_devs, + ret = mfd_add_devices(max77843->dev, PLATFORM_DEVID_NONE, max77843_devs, ARRAY_SIZE(max77843_devs), NULL, 0, NULL); if (ret < 0) { dev_err(&i2c->dev, "Failed to add mfd device\n"); -- 2.17.1