Received: by 10.223.176.46 with SMTP id f43csp4229351wra; Tue, 23 Jan 2018 06:22:32 -0800 (PST) X-Google-Smtp-Source: AH8x225ZehwjRsp56QsUacdArV4cMZN3tbfrcBHs46rwDRRVtBmq5LgUg7x3mgq5wy+gSJQhBdPH X-Received: by 10.99.111.10 with SMTP id k10mr9123718pgc.421.1516717352129; Tue, 23 Jan 2018 06:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516717352; cv=none; d=google.com; s=arc-20160816; b=HLf4MH0ZV0ZA60Q2ylGMJD3L6Mvz3HsFB1HIVHSa13Z2F1F/gmPKGqF/kQXuaLx3LB dWXiDubIvna1odOvSkj+5fECVa3wA41pc1ey+w2o4hwgbbASmflKKjSosw9Qs56s6qtA FKptBK/tDCck0YpDgjzgkHGv3GWG8faC692THUkSC8PyCgd5jSb+KebBr06Ccp6PNrj4 VZ6Nq+RMIX6Wtw/dOLxr+bJQbvKnUSkgavw01/lA4hmylUTP/Cr+qP6MNuU5PZepSwVS Mw9lQ60Zv5U4Y6ZhgEUR4HX9vjKWjEsjs1kFOOLTJZEznSC+VPWeDJwLWzQwfUxgCdOl oqtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=V90OOSMzOGDk/4ZsSX17iA0QmJlUJHEpvRuMKlkgIJQ=; b=Xe4269laBekUIsQgmDZNNXtmajoOi29hqvb0yfXU5d09dkhbhWOVqsSVt3bPpFzksH rz2XLaU8sJn4DVDICbaMz4xPmG+eaosAc3OtcURIVzvbSLI3uG7V+WHIFqcycd2KWRaC vgCzz4USLX9TfD36E1IjPG6c3et1C6/LT1DBmzKPFRP4q+td200DSzZx1WYWx/YX45df 2XV+VdmvSZ7VbJcOrQ/7fX/nXQ42UbKvhJmn4cw6ZXkzRcvLQMMYe0ZhWcFKderSOD6i sAFH+SUA5RnhqU2EOEJnETFpdEpgjtt74STKju7bsDiANpYqnPCbAtaxidVS4hJHPBRr zrJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 101-v6si4824390ple.263.2018.01.23.06.22.17; Tue, 23 Jan 2018 06:22:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751963AbeAWOUQ (ORCPT + 99 others); Tue, 23 Jan 2018 09:20:16 -0500 Received: from smtp.domeneshop.no ([194.63.252.55]:55143 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704AbeAWOUO (ORCPT ); Tue, 23 Jan 2018 09:20:14 -0500 Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:62783 helo=[192.168.10.157]) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1edzQr-000117-4m; Tue, 23 Jan 2018 15:20:13 +0100 Subject: Re: [PATCH v18 08/10] drm/omapdrm: Use backlight_enable/disable helpers To: Meghana Madhyastha , Lee Jones , Daniel Thompson , Jingoo Han , Thierry Reding , Tomi Valkeinen , Daniel Vetter , Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <30d5b26c3c7d75de3d2ab3cff9dee67084fc3caf.1516632388.git.meghana.madhyastha@gmail.com> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: Date: Tue, 23 Jan 2018 15:20:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <30d5b26c3c7d75de3d2ab3cff9dee67084fc3caf.1516632388.git.meghana.madhyastha@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 22.01.2018 15.54, skrev Meghana Madhyastha: > Use backlight_enable/disable helpers instead of changing > the property and calling backlight_update_status for cleaner > and simpler code and also to avoid repetitions. > > Signed-off-by: Meghana Madhyastha > --- Reviewed-by: Noralf Trønnes > drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 11 ++--------- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c > index e065f7e10..ac9596251 100644 > --- a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c > +++ b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c > @@ -87,11 +87,7 @@ static int panel_dpi_enable(struct omap_dss_device *dssdev) > } > > gpiod_set_value_cansleep(ddata->enable_gpio, 1); > - > - if (ddata->backlight) { > - ddata->backlight->props.power = FB_BLANK_UNBLANK; > - backlight_update_status(ddata->backlight); > - } > + backlight_enable(ddata->backlight); > > dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; > > @@ -106,10 +102,7 @@ static void panel_dpi_disable(struct omap_dss_device *dssdev) > if (!omapdss_device_is_enabled(dssdev)) > return; > > - if (ddata->backlight) { > - ddata->backlight->props.power = FB_BLANK_POWERDOWN; > - backlight_update_status(ddata->backlight); > - } > + backlight_disable(ddata->backlight); > > gpiod_set_value_cansleep(ddata->enable_gpio, 0); > regulator_disable(ddata->vcc_supply);