Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3441617pxk; Mon, 21 Sep 2020 13:54:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKAMeWs/vJmUZ8w0G5E8X0QU3OFr9pNVJ0xlcq2smoOey/c/orgaDzIWYponXkuWLKq0ny X-Received: by 2002:a17:906:1c03:: with SMTP id k3mr1406517ejg.259.1600721655727; Mon, 21 Sep 2020 13:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600721655; cv=none; d=google.com; s=arc-20160816; b=Y/ZtkZhs8qiGQh9TIOJDJv2jW4fANZ+oX/StdMDgxVPdwB5SlFHnRlG8ufTUL5+v/F 0JfX0PQoLqWcgM/MuWd4u32Qv63c8OdJHvQ8uYfhqua1eyjPSSdulexeYxV/LwegRp60 eRwdx+5jEHlbGhaD5ZAeGSzWRYCcEUoWnWLDHfCLGyK+ueEOAumpUQESfC7bHIf70++N SEPoZqRNwy0IaD+GeVv6qAsZxIRP/8NBiCNfxkCdiObPWgahmiV9khwsBfheXfYuTlD0 y0JVe5PDaX1YEDi8QbKo6Vb099k+bsYjQVDB6neQDq/0eijGC6wHY8qEbBR+EtAcvrjk p4hQ== 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=TQZP+Dkocq9HHU+hEjAfJwr43+K2LteflGaoOqZX2Xw=; b=d6DtADMDl3DpKFBkzMdleG2WtanR7dRZaFJwXiEfF+FgXyDswPIN1gmspL0sNqckGT f4hg6XX65yL+1digZiTknZSdSQDouRb1NOsQUJZ29/bvXFcVmkOsom2ISdN+b8KcjYi5 E+/0ZFJbTLn2CInhnn+mJrtunwcPbhWfmpNXROQFNWYAeTbWoXdUVXytl3NmRoqouaiv NBUV5GX7bFTpL/lTZxter6NqasZb3LJgkl/2+rzwp/DUTZlYCdt8b6DiFWdi18kK3whY Y0yrZH3ViiY38eoidQMeMYGkJnuF9uSPSpV1TwSqlyMN48PpJH9W3KAXA+NZdMpvVLkD s2Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="bRUGhCi/"; 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 j19si9059894ejx.272.2020.09.21.13.53.52; Mon, 21 Sep 2020 13:54:15 -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="bRUGhCi/"; 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 S1727388AbgIUUuh (ORCPT + 99 others); Mon, 21 Sep 2020 16:50:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:56076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIUUuh (ORCPT ); Mon, 21 Sep 2020 16:50:37 -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 68BF920866; Mon, 21 Sep 2020 20:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600721436; bh=9uOe8D3kT7BC8os13k6ok5OVNiP7ajeOe0+DIwsxGR4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bRUGhCi/7/ic+GiS48F9H8sB5n536kRHoWyyajCIGy5hI0FrKrdfsh+1WkRPXf4e/ 7CjU6GZFsRVhB38HStLqgJEkI0PvrcXY+Z5Xt+kmTJkBOhgL4yadgClPQ0A6tOODuB Mjqjh+1HfQrJCnBSW2YH3I7Cd9yimmZ1xAqwaFuI= 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 02/42] mfd: as3711: use PLATFORM_DEVID_NONE Date: Mon, 21 Sep 2020 22:49:36 +0200 Message-Id: <20200921205016.20461-2-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/as3711.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/as3711.c b/drivers/mfd/as3711.c index 3adaec6c37df..5933f322ad52 100644 --- a/drivers/mfd/as3711.c +++ b/drivers/mfd/as3711.c @@ -184,8 +184,9 @@ static int as3711_i2c_probe(struct i2c_client *client, as3711_subdevs[AS3711_BACKLIGHT].pdata_size = 0; } - ret = devm_mfd_add_devices(as3711->dev, -1, as3711_subdevs, - ARRAY_SIZE(as3711_subdevs), NULL, 0, NULL); + ret = devm_mfd_add_devices(as3711->dev, PLATFORM_DEVID_NONE, + as3711_subdevs, ARRAY_SIZE(as3711_subdevs), + NULL, 0, NULL); if (ret < 0) dev_err(&client->dev, "add mfd devices failed: %d\n", ret); -- 2.17.1