Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3442966pxk; Mon, 21 Sep 2020 13:56:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMQztIUsbQkcKX2yYbLsC0VHLavPswR43zB0y4UFYSZ4TuVO1hT65GXq2GY5PMhWJhKZhw X-Received: by 2002:a05:6402:8:: with SMTP id d8mr745808edu.15.1600721812023; Mon, 21 Sep 2020 13:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721812; cv=none; d=google.com; s=arc-20160816; b=QiVSaDpULaZsNsExe2lAB+62OLSq++bYAeQJKo1eLqELa3y9t7c+7LwYxijRBDbuuK JF64rLE2xunbFxhZHwEXBGpHNHooNquRlzFS4Jjr+1Z5E2394frkE8PEsafjMcNLHql6 EN1XD4G+tx/h6akRIcpUIl5e3er15KQ44oTSsjEhN4lnH1yW/rYWkf9uAN7zeNsujgQj dhtj2Yivya+TdP2fSa9cZ+M4pqtoacrRJ7s7PTKrcVxGLpe1G8k8BlcVMKuqKrwd15H5 87yZhv76jwA2rdE8CVVA7GhEhDUtXZHu64BvxETOKHioeTSMdYWCEng76mFq47fSkHel P2ug== 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=NLV9XhDQ/rbyx2d9x83SRyXhYaryL9hY8COnyAyWftY=; b=IAoAT7zA5JEIfagHc3zWHUMbFEYKhYONJLcaGDTx/C/1npks4/HOy43hDAV2gd36KI 41p+eZSXmuZ/LStprB6DaSRqUog9eIcvt+1lf7DeSBV0BtMPvkOrRc6x4iKUwH6VgS3w sWHHIat08gJbWocy7xhIWJjr0F+w3M+L2IVWFTEJQun1iGabhcAot9uaHNxa3HdISnLf bEFcp1IpKjZfq0E6CZ3wJ2HGryn8Y06O4yOVYs7u44imbfjaSRPYZ8E1Nn6pESOtIlPP D+G4I9jerQUL9NkMHFaWuvUHWiA0Tt+D5T5grxzM5BLATgVb+ow0tvgr8eACZWH+j60c h2GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0xrrNERP; 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 n4si9001892ejs.15.2020.09.21.13.56.28; Mon, 21 Sep 2020 13:56:52 -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=0xrrNERP; 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 S1728501AbgIUUwk (ORCPT + 99 others); Mon, 21 Sep 2020 16:52:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:58622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726471AbgIUUwk (ORCPT ); Mon, 21 Sep 2020 16:52:40 -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 CCC082396F; Mon, 21 Sep 2020 20:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721559; bh=BzfE2Whd2U7I4lvlW4ZlgaA3TzQPIBadcLxzR76dqV4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=0xrrNERPAOjcnJfTnvx8zXTdqI4QtH/KkJEc5ISWZ892Da9Pvj2pt+RB9CdLPMviW Wx9sMVz/GbBrg7dascbeY3nGZkPjUwrc3XeHPXpAZ+mKbzY8DeDh3w53Z/Beu1xoQR WYfvkwxrtDqc19xINy0aRq9eZ8k6nmWQ4MB+jUvU= 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 22/42] mfd: mc13xxx: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:56 +0200 Message-Id: <20200921205016.20461-22-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/mc13xxx-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 1abe7432aad8..659e72cdac3d 100644 --- a/drivers/mfd/mc13xxx-core.c +++ b/drivers/mfd/mc13xxx-core.c @@ -379,8 +379,8 @@ static int mc13xxx_add_subdevice_pdata(struct mc13xxx *mc13xxx, if (!cell.name) return -ENOMEM; - return mfd_add_devices(mc13xxx->dev, -1, &cell, 1, NULL, 0, - regmap_irq_get_domain(mc13xxx->irq_data)); + return mfd_add_devices(mc13xxx->dev, PLATFORM_DEVID_NONE, &cell, 1, NULL, + 0, regmap_irq_get_domain(mc13xxx->irq_data)); } static int mc13xxx_add_subdevice(struct mc13xxx *mc13xxx, const char *format) -- 2.17.1