Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6049546rwl; Mon, 9 Jan 2023 03:38:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXu/PvxHNmFPcLrML9Han9rPhAT3yRBmtDqiHb8ZPmJSaHaH+mZYdcgQK1YsKjZZk3KLTmYx X-Received: by 2002:a05:6a20:d807:b0:a8:79bc:dfae with SMTP id iv7-20020a056a20d80700b000a879bcdfaemr79924403pzb.20.1673264294839; Mon, 09 Jan 2023 03:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673264294; cv=none; d=google.com; s=arc-20160816; b=PUhHzt5xmp1/fJUMdPvXdeYM+ow0ZjbcLo4NqWT2tfIuMtBgPEbkrMMSFrGUK8Dgxh z1rmfZZnB65WLB7bx13upNKmC96441pUuDc+9b235iQcvO5poxTzChOJq8+/2Er0FeG0 Hrid9QXW8A7uE/s9Q2M0dYKDt8qQV8TWoqbsc2vt4yHZdtGvEnnQD7OfdZUUgLDezOdb lR0jIYoGd4DAmcCzxqWtmlO+sNecdKQeuAYdXS5KTcMXaJf5ehhv8onPXJNYaO/u1Ioz leo00mP64+M5Fo2sSCZp6NiMfHoekH3AVyrvO8SlKo7gF6nYntbLUcETVdUjUHamwzzi FtuQ== 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=wQNR8cHBHMjdGlCXPU9sZ0Ocqix1fXaHO+5PyqA1e7I=; b=SGfSlKOfCrm/NGr25qa8bh3OlVJIK6DLQ4ALe9J+w5/Y2U9SFtDXsfW8iwHOOtP1zc AZkWsTVO9PFhMFiwnssutiS2+gXm/E24IbLTZqVYuRTLooCI6g2NaSLft+Qw5uzz9+Fh 2V/K/eGrmus2X201Tf/hGjYjSPTMpiXde/2pTDZJnTBUDvxA0riX8Lfzxwu1Gaf74Are VbaiHtbcJ0Yw61IFAXFGA7rrKoUMXHpPwrC8U9Qt0153os/Ri31Km7SKqnXmKO4cbSJ8 YGu+pd8vA3Kh7S51NT54g62fBaSV5d/LAALnhmW/0R+Sp+OUzhAsmXc0jW5N0T1YXcwG fp6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MxyQVS+f; 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 t1-20020a639541000000b0049bb86670d0si8829279pgn.290.2023.01.09.03.38.07; Mon, 09 Jan 2023 03:38:14 -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=MxyQVS+f; 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 S233929AbjAILNX (ORCPT + 54 others); Mon, 9 Jan 2023 06:13:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234624AbjAILNN (ORCPT ); Mon, 9 Jan 2023 06:13:13 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D9C140C4; Mon, 9 Jan 2023 03:13:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673262792; x=1704798792; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hdEsJAUiSPZYf7Xm2lSioHZsJcGS6XDIqya7eqaZHNQ=; b=MxyQVS+fmsh6fE4C1iMnsuBYrTDVWRGT+6Ihbwq5YMNzgFn7r+I3kj/C WJCDh2fDkr+uUtQcQmsXzgKD7gv3/S6+qgHYo9wDyelHAw6gLO3AlsWOX 5Irl7qhuR0k6DBNP2e9N3M4Gb1fLaPP3KCluKWdyEyu2FEUBnxNn7bgq5 aSRYcL40OWbC2nW7nKQbcjqjmvsb2veFnHJ2dHJ7soPjiDlzfYmcQ0wca FmEJXAMB2mBaszxEP5whf12NxgDfhC8VKEsDcCnLuvY/uEuWHMlZP1+Vp Fe2vWmt1ZeApkKBSD6o+i6ZVOCudwRf5Ke8NyN/tsrJG14bN/KsdroTJM Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="321551712" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="321551712" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 03:13:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="649982329" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="649982329" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP; 09 Jan 2023 03:13:04 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pEq5N-006MLx-13; Mon, 09 Jan 2023 13:13:01 +0200 Date: Mon, 9 Jan 2023 13:13:00 +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 Subject: Re: [PATCH 09/15] staging: fbtft: fb_ssd1351.c: 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-9-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-9-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,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:23PM +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. > Signed-off-by: Sam Ravnborg > Cc: Stephen Kitt > Cc: Greg Kroah-Hartman > Cc: Daniel Thompson > Cc: Andy Shevchenko > Cc: linux-fbdev@vger.kernel.org Not sure why you have this (at least) explicitly mentioned as get_maintainer.pl can generate it and git send-email can utilize the script output... ... > - write_reg(par, 0xB5, on ? 0x03 : 0x02); > + write_reg(par, 0xB5, !blank ? 0x03 : 0x02); Why not positive conditional? write_reg(par, 0xB5, blank ? 0x02 : 0x03); -- With Best Regards, Andy Shevchenko