Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4143494ybg; Mon, 21 Oct 2019 04:34:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2R8h5RJu1NEye1xuGALkj00kMR8UBlrRCYVnaYr/F8bIlmGCeNsQPy9JNklGbVv1aP/hG X-Received: by 2002:a50:fb0d:: with SMTP id d13mr1312006edq.200.1571657661399; Mon, 21 Oct 2019 04:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571657661; cv=none; d=google.com; s=arc-20160816; b=IPIQv3MRGax6nE9vhNAIoMwiAGEjrMCSyLqMQ1kAttbaeWQTaqRIrxZ6Dmmv3hj86v mHOr8vX64FE6Y3ZeLuBPWTLyJE8iq3shR8D3Vrv4jmZA/mF2ObltoPxtAAPlGa5fUtGp KtEPXZx9TzH928+pRfHYj83562K3thPByTVdUaln30h+PHzyYnaBpULhNXiMBNwBXF2c sc4wUFzN544x5hpc3ewsMRSSDeyDq6oFrl7XntKm0g9ddf0I2gHMxaCO0+vA+f9xCGxO 2DXvSitjAG+FZ7low7EfVEAElnq1QQX/cRWEt2iNcaFKBJkIs2p+4EpBT4fpsRME/Ift p2Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NvogyYcPH5HiSpRRQoQRP+VJ8MEq3onz6Q0+j4Mfoeg=; b=Muhxqt+vlu7jbVKpAjBbx6jJmq7rnuFrleLNvsRB66gAr4Ip5hAlo+iRp1/MSqLAKa 4+XlqFRT9dZez5rnNY5vo70qJXVEYlMuaAVqI2OR/MxAP1/z+DOnEOonIT85c/FbRyZV tUtJBStJUjJkl6YvxykmoOzpydt2im/mtTRsRZFII+pO6yFMy21LHgRYKLBYCf3+atYW xjAeKxBhXSui4/+6Cs0n5evxLDUEVtrALr3uFDMDdxkvlr2TuPvABFgQQUM69Crj8jXd aZXbIx6eXNqGo4+VoUH4evS4A2MCgDkPLVB8VFs038I/IQDqLsKlt7Ieobma8R70iMME 9NTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oy1bDj8c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e58si643739eda.7.2019.10.21.04.33.57; Mon, 21 Oct 2019 04:34:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oy1bDj8c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728460AbfJULdU (ORCPT + 99 others); Mon, 21 Oct 2019 07:33:20 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43902 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727685AbfJULdU (ORCPT ); Mon, 21 Oct 2019 07:33:20 -0400 Received: by mail-wr1-f65.google.com with SMTP id c2so8306532wrr.10 for ; Mon, 21 Oct 2019 04:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=NvogyYcPH5HiSpRRQoQRP+VJ8MEq3onz6Q0+j4Mfoeg=; b=Oy1bDj8cgdLtX4MeiPkZTXa0D+BsfxOlUyDd1G94MhAQlyikxatILkupmu8WpJHKhr vZ6WT8psdPmKrzaYFRunzvze6/aEy3RAYxWRZ8qtAZfTLsmd1GTW7hyrkb/T/Ov1mNNk NX/X/sYIS9v7KTaHCJD11X4THvbgd53xXx/rnoHat2Y5X5uDlVHoneJklSnl439iAGoj 76f8ZodNxPqIBfxoy2YpqezgC4NBmmSdYwvu8vPOKJS4E0UsbD6q3IFIj3bV9pn6KOic 4I2FslXSg2psH7JqqY3h0d4EQ0S+I6rz1WxJqctQNUkJBMiSb4+9CC3hPSo1jg34a7pE u6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=NvogyYcPH5HiSpRRQoQRP+VJ8MEq3onz6Q0+j4Mfoeg=; b=sNUgIj0LLzImkqxgKeU5/QchZHyWQTCprQjrp1ix28Nu3OUkuriOLY47OcViN3XUMC cHlDeRN/7N6zxsucL8XzZqunbCSEKi3PCPEfGThm4olFu+LXI/B5bzUWVTkx4y83potR ub0tofPbDh/w+EC5tdeVfAt+qDJJr/FnImPjiYg9PGkK5S0fIh3LQ3zC6v9wwRzJ/isq 7kFXgLlTDmmC4U1vROH6PKfdml+jDUpPNJq0+ZtR1bPuZdidWrvqV03SwW/d/wuEL0Ce 7ejBt6fzBgS4AAGtiTv9IATiKz2KAayby9q8SVhPEb2Tx3Y0Am9UGz0adObCVslMTwVk eTPA== X-Gm-Message-State: APjAAAU3mX3AyW2lT+bgyRK/LFuM8DBiFxLfss3g7MPCAji+uMk1SD1c 60DtdK9AC69XnUTPsoleflLOKg== X-Received: by 2002:a5d:678e:: with SMTP id v14mr12033062wru.393.1571657598261; Mon, 21 Oct 2019 04:33:18 -0700 (PDT) Received: from dell ([95.149.164.99]) by smtp.gmail.com with ESMTPSA id l7sm5284560wro.17.2019.10.21.04.33.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 04:33:17 -0700 (PDT) Date: Mon, 21 Oct 2019 12:33:16 +0100 From: Lee Jones To: Daniel Thompson Cc: arnd@arndb.de, broonie@kernel.org, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, baohua@kernel.org, stephan@gerhold.net Subject: Re: [PATCH v2 1/9] mfd: cs5535-mfd: Use PLATFORM_DEVID_* defines and tidy error message Message-ID: <20191021113316.GA4365@dell> References: <20191021105822.20271-1-lee.jones@linaro.org> <20191021105822.20271-2-lee.jones@linaro.org> <20191021111555.zsvvdfun3gqhrurw@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191021111555.zsvvdfun3gqhrurw@holly.lan> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Oct 2019, Daniel Thompson wrote: > On Mon, Oct 21, 2019 at 11:58:14AM +0100, Lee Jones wrote: > > In most contexts '-1' doesn't really mean much to the casual observer. > > In almost all cases, it's better to use a human readable define. In > > this case PLATFORM_DEVID_* defines have already been provided for this > > purpose. > > > > While we're here, let's be specific about the 'MFD devices' which > > failed. It will help when trying to distinguish which of the 2 sets > > of sub-devices we actually failed to register. > > No objections... but won't the tag added by dev_err() already > disambiguate? The difference will be between CS5532 and CS5532 OLPC. Please see patch 4 in the series. > > Signed-off-by: Lee Jones > > --- > > drivers/mfd/cs5535-mfd.c | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/mfd/cs5535-mfd.c b/drivers/mfd/cs5535-mfd.c > > index f1825c0ccbd0..2c47afc22d24 100644 > > --- a/drivers/mfd/cs5535-mfd.c > > +++ b/drivers/mfd/cs5535-mfd.c > > @@ -127,10 +127,11 @@ static int cs5535_mfd_probe(struct pci_dev *pdev, > > cs5535_mfd_cells[i].id = 0; > > } > > > > - err = mfd_add_devices(&pdev->dev, -1, cs5535_mfd_cells, > > + err = mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, cs5535_mfd_cells, > > ARRAY_SIZE(cs5535_mfd_cells), NULL, 0, NULL); > > if (err) { > > - dev_err(&pdev->dev, "MFD add devices failed: %d\n", err); > > + dev_err(&pdev->dev, > > + "Failed to add CS5532 sub-devices: %d\n", err); > > ^^^ > > Typo (and MODULE_DESCRIPTION() says this is a driver for CS5536 too). > Once that is fixed: > Reviewed-by: Daniel Thompson Ta. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog