Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3441748pxk; Mon, 21 Sep 2020 13:54:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh0KnHAPFEbSGI9wqVL8nXgDrBR5C7azHIB/AXX+eGwEB/5ftGCAt/Ue0FUS+QRip6/Bnd X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr1397089ejb.104.1600721671356; Mon, 21 Sep 2020 13:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721671; cv=none; d=google.com; s=arc-20160816; b=ki/vLoYWf8N95eu/nInd2ckHtVL8K/5S/vbezgFKp7o4nY8erI5eqrQhvI7zXG6Fdj ZLSKASNOZ42v/YtdK4FGHjBzkbUNvtf7FRp6u89FRxyo431nl5/TwFpl8ulJP5NuB8Iy Qc5BfPN4V2qcJ+8tNFJpM6PspW6lE5snm5zIF/uMDzF/sgRKc7/ltKWWqRsX1jhNER07 Rbshrda+g9XNcPfkheb1/n2f+L95jlti3vA6brTM+S8B8+GR1NXm7WH1hEhr62tLzIF4 X3WJiFEhMo1/neZ/q/6JOvjrMVDvxpH/cSnG8FE03aMeK2W0r/U8spaAqXtaArT/gGQ7 eIKw== 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=rmfphZtO1tXlODldlyqsw1rTLW3m+Q4taIkINNWIVgE=; b=XSCuDNPPRRMA0qiljUv3IUS8I5QshgHO4zyOXlDxexqiWQW2guGMcnd3ZJhG03cju1 ygqibKOhmzmeAexdgr24JjJckG+QzvojB/RvthXg8fQiTUKZ1JA/gF5pJuSKUuwUS3t5 MK86Y7+zlcFjc4R9XPf/uTJz4l3AFmv2N0AlAPV9l7eG3C6qeY9np05zLwluqaJPxt8C DPEYlg69pZqZbUHk++g1shRpiZmtTT0/dF13W1BqkJJ4cHMoZv3lFWaI3gz1/sXyup9z Je8kovTxLoivlg17JqUurACjJ3YtLn5G1zfjlIEdRYFuwS+io6zKewBt+dsSvLzCRvlF mPlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ugz3FBLC; 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 ay3si9114031ejb.174.2020.09.21.13.54.08; Mon, 21 Sep 2020 13:54:31 -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=ugz3FBLC; 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 S1728455AbgIUUwW (ORCPT + 99 others); Mon, 21 Sep 2020 16:52:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIUUwV (ORCPT ); Mon, 21 Sep 2020 16:52:21 -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 4DF7D238E2; Mon, 21 Sep 2020 20:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721541; bh=yEgDn4IkqKQksCNA/NQZDILTLecSilVq6LggKwvJXf8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ugz3FBLCHTQJBrVs+u5eNW1C95SSMEs+BGcd4V04BXU5YDwerGwGJ0CeJNL7saypT Db9pZTI0RwjuWlJUfJOSB06N3FHlwhepVsR5iEGyhDS+55LS+kIGHFM0z1nrsq6E94 phi3F6o4shZGbqR+Mc0lXhXtW6rFLegkM6Mg/Nz4= 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 19/42] mfd: max8907: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:53 +0200 Message-Id: <20200921205016.20461-19-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/max8907.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c index d44baafd9d14..5119d4092d3d 100644 --- a/drivers/mfd/max8907.c +++ b/drivers/mfd/max8907.c @@ -257,7 +257,7 @@ static int max8907_i2c_probe(struct i2c_client *i2c, enable_irq(max8907->i2c_gen->irq); - ret = mfd_add_devices(max8907->dev, -1, max8907_cells, + ret = mfd_add_devices(max8907->dev, PLATFORM_DEVID_NONE, max8907_cells, ARRAY_SIZE(max8907_cells), NULL, 0, NULL); if (ret != 0) { dev_err(&i2c->dev, "failed to add MFD devices %d\n", ret); -- 2.17.1