Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3442227pxk; Mon, 21 Sep 2020 13:55:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa+CceLZLH0HfbPeciHbAoZX38YCYTq6uPazXCH/+gJaP5hsqbYgPyz+0rHtitV9tIfBU0 X-Received: by 2002:aa7:c0d3:: with SMTP id j19mr837419edp.40.1600721724486; Mon, 21 Sep 2020 13:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721724; cv=none; d=google.com; s=arc-20160816; b=RWhExSQQkBRtDYYq+cQ8gfBDNpAs79OWLR9rRx+KGq6Z2FLzj0kU8oyZ6krhse3LgX DNx81pJEKh7VBttC29OOYP/LjfCjtwMbcKbI961aDKogVX6YVRBpL2pyl4BNr7Mwaldf wPWTgt8wDd6dizLptaDGtCyzm+xIjqNuKjpsnG6ht2Vx4kL8M9vv+YSfSZGz65QDX99B 63Jcf/eYYqsUtpRZJEWC5r2IPMZ9kCezitggCq9J9IR45dctGFr0VLOnLYDjIY+2k44A GuooGWaR4I3lyy9Ul5EtcjsV1+PGsHDlOGwRARaL4yzevKFv8Cxk1Qt1lTT5HycZa8Su aNrw== 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=tDTMtMy7+wplJLbIAz6ANpvTkw55dGW/96D3zsVjJ5c=; b=d98Aq8yiFYSqOUxM5GZieMHVZTcmyw0YLiNrsE32IsFwgBQfNAU6CqHAITNNhDSDuO tEciEX//ml2kf6rPy7ka8INB02kbLn2qKKJz2LyB6h/h6cFoz6rPXy9lVHRyImeBBIcz 2JAnbK1XFbPgV7WR/2Wbincmgj0GqIeIhhKbHUgF884Qogd5BrAP6zm0GhrDzVcsyYOs ax4WAaODF5u8U7zxL+uLwL+ia5wARPvIReLtoFTMTJl5vinUSSFJcfdxQrEF68g06qO6 gE1e3nxVpV/tpObU/l2IubQt02uLxPiePdkta/d5s1xSkmihJxr+YJQrXi9kfzAGl71u IPFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yQowhQxn; 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 mc20si9069689ejb.571.2020.09.21.13.55.01; Mon, 21 Sep 2020 13:55:24 -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=yQowhQxn; 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 S1728553AbgIUUxL (ORCPT + 99 others); Mon, 21 Sep 2020 16:53:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:59214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbgIUUxJ (ORCPT ); Mon, 21 Sep 2020 16:53:09 -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 74E70239EB; Mon, 21 Sep 2020 20:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721588; bh=2+06qkbWAVkuhERi8bhEbQjqR1FgtPU6AJIKYJUtzs4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yQowhQxnH44W+Den+Gm9jvWj8JtK6DNN/YYciYlwqQpU+z7+vAEs9H4lO500Uwzgy iPXvXrendlG4E81o18bwZ8I4MLSZuRPMBk+Mb7iKR9/QAGmGAdGrUlGX9aei5RE8yQ JIIqa36YxlE88vEaGRtyOAoJsBWWe2WIJSsj57iI= 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 27/42] mfd: sec: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:50:01 +0200 Message-Id: <20200921205016.20461-27-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/sec-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 8d55992da19e..804f32d0ae22 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -457,8 +457,8 @@ static int sec_pmic_probe(struct i2c_client *i2c, sec_pmic->device_type); return -ENODEV; } - ret = devm_mfd_add_devices(sec_pmic->dev, -1, sec_devs, num_sec_devs, - NULL, 0, NULL); + ret = devm_mfd_add_devices(sec_pmic->dev, PLATFORM_DEVID_NONE, + sec_devs, num_sec_devs, NULL, 0, NULL); if (ret) return ret; -- 2.17.1