Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3441825pxk; Mon, 21 Sep 2020 13:54:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeDLl7txgUsIszcL6SUU0l5yoc1zaAdz16H02WTR0HYwQdbeS7RHnH6JTnefnOq1OZpfUo X-Received: by 2002:a17:906:1f08:: with SMTP id w8mr1338008ejj.181.1600721680402; Mon, 21 Sep 2020 13:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721680; cv=none; d=google.com; s=arc-20160816; b=iZb7JYzCNdeV7x2VpK8keXud4acbKFRuA0X4pLtIWqyrDwu8DhBu0QLkPxeF+Hm82Q FZKeS+huvLm8xquZK+txPTdtDhS+WL/pKtO90LUhowAGnovZTB/iqcdoRrOEcYhMVp6x joaAXbd5MbNQ3FcYniqTKwh5t3ekzSu2NxYB3Ap95jWlsxhYIq+pVKpr661ToO59pW1u Gs+wH1VE79XdO5QMjqIg41NLvykjrFN68bHSSGn9CL0KURWA3G5OTCfADViK/KWZcPoP 3Dp+W3o86BOvEYTb4/XuYi53YSRNqhmOMsEJCONGo4twLgDrFamIamz+IjgWgHuYyWOA K8Vw== 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=egjY1PlrKrS9NfI9w7vojBN+IjaKRH45irP7oJztwbU=; b=vxIAvtaqHgL+rWTnIauSs/XgQJ/lEravaET+lQxX2+pNgO8ZZLCKFxwzDXope9u+Ga YXnidzetf17fIT5mx8Q3gSIMbRVibqMEWShiVJoyodJk0+dZT56XhQdCQkBmsx5ooW12 Sq0p/0UomE0qZ9Pe9lTwIMGJEAPhwlxydv7iAmQSbmWleHP3fKcBylMTTa3oXr68yqb8 vQN95+a1TVdAwbxvlYH7U6hwOjFhbiQMxd+e6M1IlFq3haSWtrs7RUpahp8SDuTVFcVL aovnZVWELGrH8AtZIM33mTOrRiUxUYE830Et5g5gHlMjtN0wv0S3iLVClaY+gzh+dB+f Ym5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CKRPN6py; 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 f6si8721899edc.423.2020.09.21.13.54.16; Mon, 21 Sep 2020 13:54:40 -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=CKRPN6py; 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 S1728472AbgIUUw1 (ORCPT + 99 others); Mon, 21 Sep 2020 16:52:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:58374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727867AbgIUUw1 (ORCPT ); Mon, 21 Sep 2020 16:52: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 0E68A23976; Mon, 21 Sep 2020 20:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721547; bh=QSsL+CSI3AXchxxz+lidBlleLXKIIKScSMwUhN+nqIg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CKRPN6pyK1hs+xuYm2MSFPZMr8UtZbSG6IoSCc1v3vxB+Jy51NPBorqk2XjHWn3Kw c1xJgVJzAZlXFNpsXGZ1cZL+5WXUf0b92maFxRxFDwHd9M13bXhBZCE09vzYWocWAz 2i41oYfJ7b2To0uxQDXYx19wqAIG32QxiW4+YXRk= 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 20/42] mfd: max8997: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:54 +0200 Message-Id: <20200921205016.20461-20-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/max8997.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 68d8f2b95287..0c5b8baead62 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -212,7 +212,7 @@ static int max8997_i2c_probe(struct i2c_client *i2c, max8997_irq_init(max8997); - ret = mfd_add_devices(max8997->dev, -1, max8997_devs, + ret = mfd_add_devices(max8997->dev, PLATFORM_DEVID_NONE, max8997_devs, ARRAY_SIZE(max8997_devs), NULL, 0, NULL); if (ret < 0) { -- 2.17.1