Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp649195ybz; Wed, 15 Apr 2020 15:56:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIx61gy89aYFbjLpQQSiFQ3WXAFLircmOnrt1Hty4iHXkYDxuhxhbqDf0+GAk1PsiYV9prV X-Received: by 2002:a05:6402:543:: with SMTP id i3mr10656278edx.255.1586991410325; Wed, 15 Apr 2020 15:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586991410; cv=none; d=google.com; s=arc-20160816; b=At5c69Gy/I527Apq49WcEuyExi7ZU1zYEby6d0EDr+V1o8HFw8m0jpcgVeiqIChmFh 9gaPWqrzFHL6/FdnpuEY3ukA5qWCT3BGMTX0cPKYG+Vg6qRcAvIDC225WcnksNfp1h9s VFBNYq8ttto0BKbx5MkyCLaKWZtckEn7u5rTtMP86mbRY3gTjrM+c4owxY5PqFhYv7N3 h6gxMMnpakyxB8PRDptR3GRdjMRPfutRNbVq2SF7Y9kkcc7QF2GVepWKDsXF4EJlw0JQ dfw1JcaYDlOCdYkZXQroXbjeO35FfVoPCz28FIqfNzKg3p2BWYYM+IEWZXVr9bVJOtcu UBJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IrPL0bBBQDeF29Z4aLgq8ImOYXP6kd9vk4rNs7ZTqws=; b=Pj0hfgLPTveeXAoxLNLmyHhrlUmEQFkEWuwU9yhvhyHZqL4qKaszXYobf4YpBglk+v ve/n1czqN1Esbj/SQVnjGrxzeEAa0Bkm+R1FzdM6+Rft1yjn87S1qcBuAF2vLjDgUs2U PKRg4KEK1Beaa8KE8BuxDGN6F+5yQ39iQNBdPa8CoxUptjObDBfKT0wlxoZR/2k0U8O2 0Gdnz++75hzNNbc44JmFuoM0KrV7gRgKavO3Dq7TShzBind2QODcWJ7lmwY0JiyTiwax e8mwBq1aBPL9I80b/x8gC1e6PtAdIeCfxFt8VDmVgDfliuLxMHU9KyWJ5yytHTWpEYl/ +ayw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yIAMMnZu; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si11937908edp.155.2020.04.15.15.56.27; Wed, 15 Apr 2020 15:56:50 -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=@linaro.org header.s=google header.b=yIAMMnZu; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408822AbgDOKj5 (ORCPT + 99 others); Wed, 15 Apr 2020 06:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408571AbgDOKis (ORCPT ); Wed, 15 Apr 2020 06:38:48 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CA26C061A0E for ; Wed, 15 Apr 2020 03:38:48 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id d17so11595261wrg.11 for ; Wed, 15 Apr 2020 03:38:48 -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:in-reply-to; bh=IrPL0bBBQDeF29Z4aLgq8ImOYXP6kd9vk4rNs7ZTqws=; b=yIAMMnZu4/5XkjVkCq32hl9Pn9SikmiyUmlKUEu7u/JAwTn5UxxsMyK4Mz2TFYtBJK 8bK9XO32DspPZRUWcNCWbt434F5d59Z8Gp6+JI7VNiygAxfdd+dK18ew602ZlIrASmTB f+O8iv9zsJpKyROuS7I6KJHsds1z/or0RLiYq85eCFBcyejyW54bjjsycwzLwCGj81jO M5mgoA6CFO2R78EETs8ZwxWQ497GCVAIWtench+iCvLlMVYhQVf+KEUmYIFf/OsCqb7E u+lhG72eBlNLj5HqiKBPiX6FLhcupVCkG3ru861qNkNNR30/I6gDKk8HUXt2PeCOnnOi NGpA== 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:in-reply-to; bh=IrPL0bBBQDeF29Z4aLgq8ImOYXP6kd9vk4rNs7ZTqws=; b=n03Bpvh/KjbWLtXTD4k+nWTaBvmr12BYdPycUB5z9n4zY/AOA0imI5xGCzBYX2ZD6o sD+9YMNcKB7NSB4eTgL90nOUuUb3Zq0kTBYoCRp3yTBnuInPdm8XMNPDSL27Jh9g2uQR 9wDSeOpiyWrsRmzd31c9CxPNJbqtn2Ugofed7YRW30jfeCF6/SSKRWdJfbcf8Tvd7Nlz 0cYnLINJu+CVMA0hI6wPlPUoI2t1Q6cvUJb2bN3oHBCdhcN6CV8T3S6vrNteMdp67JO9 1eTHUF4n+bjkZUdBUA6v17TMrJqfFXMpOrLSuE6cx21MIA3sMAd0EG5vOfxl7EvCQu01 ukyA== X-Gm-Message-State: AGi0PuY2vsvvfUfxzB1/0FCd3xHXuMtwRdUxsmJ+DaE8opbL1tiJQwHu 1objFcdYYl4SCivbfkW0sJI9fg== X-Received: by 2002:adf:e54c:: with SMTP id z12mr17403476wrm.276.1586947126830; Wed, 15 Apr 2020 03:38:46 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id z15sm10599204wrs.47.2020.04.15.03.38.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 03:38:46 -0700 (PDT) Date: Wed, 15 Apr 2020 11:38:44 +0100 From: Daniel Thompson To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] video: backlight: tosa_lcd: convert to use i2c_new_client_device() Message-ID: <20200415103844.vnjccybvy5wtnrq6@holly.lan> References: <20200326210959.13111-1-wsa+renesas@sang-engineering.com> <20200326210959.13111-2-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200326210959.13111-2-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 10:09:59PM +0100, Wolfram Sang wrote: > Move away from the deprecated API and return the shiny new ERRPTR where > useful. > > Signed-off-by: Wolfram Sang Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/tosa_lcd.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/video/backlight/tosa_lcd.c b/drivers/video/backlight/tosa_lcd.c > index e8ab583e5098..113116d3585c 100644 > --- a/drivers/video/backlight/tosa_lcd.c > +++ b/drivers/video/backlight/tosa_lcd.c > @@ -107,7 +107,7 @@ static void tosa_lcd_tg_on(struct tosa_lcd_data *data) > /* TG LCD GVSS */ > tosa_tg_send(spi, TG_PINICTL, 0x0); > > - if (!data->i2c) { > + if (IS_ERR_OR_NULL(data->i2c)) { > /* > * after the pannel is powered up the first time, > * we can access the i2c bus so probe for the DAC > @@ -119,7 +119,7 @@ static void tosa_lcd_tg_on(struct tosa_lcd_data *data) > .addr = DAC_BASE, > .platform_data = data->spi, > }; > - data->i2c = i2c_new_device(adap, &info); > + data->i2c = i2c_new_client_device(adap, &info); > } > } > > -- > 2.20.1 >