Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6047327rwl; Mon, 9 Jan 2023 03:36:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXuGHh0GzC5WCu+nZTQ53KtdaFdBKMrW+xq/pCtwcfqKnYmZPoQfuWsn+I5ADvujDYCzjMFB X-Received: by 2002:a62:6145:0:b0:581:7cb0:1eb8 with SMTP id v66-20020a626145000000b005817cb01eb8mr43129434pfb.17.1673264163972; Mon, 09 Jan 2023 03:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673264163; cv=none; d=google.com; s=arc-20160816; b=YSJ08sRx3jN+tQZIgkD8CjMhhpIb/q3adrfncQQ+K8+ZQib5TjGOWmD3X3m3n9F+O2 c7Iox9qqH6J0ac7zOuIH+quYC90wODHyhEO0WLf6Bz67bTXOa6fcXaPafD/cmCTRlio/ DEJ0Y1Vw4JSOBFzakP6GzpZSd4RhRTIWPRAgAcczXrRCoeX6Dfos2XKTbC+KC9EBQZTg /dp+ePHdLirUbz8r3pAvqFlxODLbvRAwXayiqhA1p35/PD2b1YS9aXf5LT9Cx2opym+M yK+OXf6DAd8K8bSHR2yznHfibIGhpEfcoF1GTgHX9+Du/36nC4DW5MQoK8JzofgEIWOm dVWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wdIYcstquUXqLM1mcSmS+2DkXrLSCs7FWNIFCHa8uDo=; b=T371zTSf9VDwhH17tcP2fxnK6r8IYzUTluVOj3SJRsKto2LqAxo8WxFFdCYtTbWckF UrWqt2G66q5roeOC4JRAH7a9PE9ZSstzt2Uhf2Ja5q+0vy5KIh4zdhmLtYUhir3ehR0T Jz112nM2uppGsP2zJewLmCd1VA0Lb4QI9yDBwO2WUu8sC3zsNGZ1yadIGK+rsrJOZ8Uj r2CpHe5Ag/Mgp1hsaHJO0AYUbMrUuaSZMFbmxp4aAuobP5YwRkm6rUZzTJi9BiWbroon /ur+2eHEKBmPW7+lWCl8xXBwexGInpG0Qj6D6HZdcaIH3bjyVIzQuj33i1CDkWh0MP8r qiSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cab7MJ0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a140-20020a621a92000000b005832ed8e99bsi9225784pfa.116.2023.01.09.03.35.57; Mon, 09 Jan 2023 03:36:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cab7MJ0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236435AbjAILQA (ORCPT + 53 others); Mon, 9 Jan 2023 06:16:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234689AbjAILPU (ORCPT ); Mon, 9 Jan 2023 06:15:20 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D887140C2; Mon, 9 Jan 2023 03:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673262919; x=1704798919; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bZbtSxVq7tKRN0w032vmRM6pRPfyv3+6ov17Khe0FpU=; b=cab7MJ0+YavhmXxy2tk1jZmDeXzl9pf7UC6gnGOSFvuHpRmtnXk55bwk XKgMRWIPNx6nZc6+x8mrIEHimyifYeFfdhSDYJLAy+2ZGGc/KUMth2Vz1 vGQSuf+iyr5gutxs2XruYYj86sygxXNROa2Q5pzPHC63fxXSBaqswRrQI oYE6J0WVgSPA1xoC6Mmx98L8cc16BSVAHRVbe4DYy/9h5rVeEqzlLLDI4 eI7gLsH+DtnywMI3ajr7cknStbsEH4bRXY8vIdqcbNx5QYc/j4qfbIXu6 z7b9S7oy6OfS3gcz562XkRv2LmP6S4xBeDivGGGrguHABE4mVYFPY9UAb g==; X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="324095817" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="324095817" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 03:15:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="830562411" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="830562411" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP; 09 Jan 2023 03:15:11 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pEq7Q-006MOk-0s; Mon, 09 Jan 2023 13:15:08 +0200 Date: Mon, 9 Jan 2023 13:15:07 +0200 From: Andy Shevchenko To: sam@ravnborg.org Cc: Nicolas Ferre , Helge Deller , Alexandre Belloni , Claudiu Beznea , Antonino Daplas , Benjamin Herrenschmidt , Paul Mackerras , Greg Kroah-Hartman , Robin van der Gracht , Miguel Ojeda , Lee Jones , Daniel Thompson , Jingoo Han , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, Stephen Kitt , Thomas Zimmermann , Javier Martinez Canillas , Peter Suti Subject: Re: [PATCH 10/15] staging: fbtft: core: Introduce backlight_is_blank() Message-ID: References: <20230107-sam-video-backlight-drop-fb_blank-v1-0-1bd9bafb351f@ravnborg.org> <20230107-sam-video-backlight-drop-fb_blank-v1-10-1bd9bafb351f@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230107-sam-video-backlight-drop-fb_blank-v1-10-1bd9bafb351f@ravnborg.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 07, 2023 at 07:26:24PM +0100, Sam Ravnborg via B4 Submission Endpoint wrote: > From: Sam Ravnborg > > Avoiding direct access to backlight_properties.props. > > Access to the deprecated props.fb_blank replaced by backlight_is_blank(). > Access to props.power is dropped - it was only used for debug. ... > + if (blank) > gpiod_set_value(par->gpio.led[0], !polarity); > + else > + gpiod_set_value(par->gpio.led[0], polarity); if (blank) polarity = !polarity; gpiod_set_value(par->gpio.led[0], polarity); ? -- With Best Regards, Andy Shevchenko