Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6232484rwb; Wed, 18 Jan 2023 02:51:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXvrNoS2M13+49jxiA2wYyevthf3kJWrwXMpp9CLHM9IDo0H7YtgLBrF4aFjXiZvOZ1xReD4 X-Received: by 2002:a17:906:eb99:b0:7ad:c8d7:4fd9 with SMTP id mh25-20020a170906eb9900b007adc8d74fd9mr6320598ejb.36.1674039074897; Wed, 18 Jan 2023 02:51:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674039074; cv=none; d=google.com; s=arc-20160816; b=q6BovIB2Zyzk/CiOFPUfZyIC2ZEmW7rDYqxeuFPRsve9m1xAUNMNXwLRT473dw8Ghl UXJ1eH2X6Y1totmLg02XKloeTg+CpFLVLDDZTk4KefGX0/ny2V7z8f74OBptCEm+AGhp j97N+SJLF/zWkM8Iwud+Gf5/7zuBPkXHTLCy/XNYyb/wKBXoRR+DIZHxD/XMRg/HAra2 2PLwWeD9bNwMizt2SbDAN0B10Qayt28hci/ZtlzJe/HwIaEW3YIN3Vwg7IO2UWDFvD5z 1q6nOeJaLocDUIK6dA/LmJnp8v5a5rRqErRCupymvUFSEJMnZ2j+A95lsUcsXx60Xl44 isqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=AcvYWHjrshjvlHCFoqgs+85kq2cE7G+/UYa9XkteDYk=; b=g+6wWvzLtzB7PaxEezuff+uPg//gvFQRVOJxrSTGGXQsjCsdR9zfNZ/890syUaBxjT iVENxyKhrmAeCf9+QEeLof+yvvAtgq990uJWA+UacLy2xF4WHUrz10XNLQd6ieTZk2Bb jxvY8u2nEkl2DQN2eHFdXhP7GMQCi3d7y5DtSpJH7Y51u1mMSL7e8xwd5Rcxp6KLvwVe PgQndU/GKCIYH7ddC1As3NJF73PIAE+FMpq+Sffei+z9ma9Xx8RiYYfzny077ZMgF6TG PcdyXIf4vHSHe/UUQdhp2qExOZViFpQwMC8GlIB4RJAKx0bTaJbi8RPgEYxmy0ibH2Tm 7JTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ERiDmPHK; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xe1-20020a170907318100b0084d3360e59csi34043192ejb.601.2023.01.18.02.51.04; Wed, 18 Jan 2023 02:51: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=@linaro.org header.s=google header.b=ERiDmPHK; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbjARKom (ORCPT + 45 others); Wed, 18 Jan 2023 05:44:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbjARKmu (ORCPT ); Wed, 18 Jan 2023 05:42:50 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 845DFC925C for ; Wed, 18 Jan 2023 01:46:09 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id iv8-20020a05600c548800b003db04a0a46bso1084501wmb.0 for ; Wed, 18 Jan 2023 01:46:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=AcvYWHjrshjvlHCFoqgs+85kq2cE7G+/UYa9XkteDYk=; b=ERiDmPHKrVvtYncxwPc5bkfftwkEVXZAtyAluxA87v1+zzSqDGsYO8ZdqvT/3WdM1R bS2Ov3gDCmbcG/2sCcLE1Ah7wNjvDrkGDtiPgAhuYJWn8SdKr5PgBNLpDy9mZZ+mIWKM LH6eYz8fbKs/z+voezobT+SCVWvMnmY2aJ0Z9I0MA7z2eza5LIx2sZLF8zbCvRHVJ1kg oxgfFGTKBKSseIj4uj+Hvhv8YFGGnIovulttKIthOyrz6MTqNdmLYL/jVaYrJeVnF2kZ o164YUscNNEuMdBprgPJhXDzP2XHwmsS4CNDCpdTYctz+EJoAbmmtc04wORSSPF5rYQV fLmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AcvYWHjrshjvlHCFoqgs+85kq2cE7G+/UYa9XkteDYk=; b=gqi7HyfRWTn/gPCeQAyd73kcTs0kMwT22CgM2dQbLSsXU+h+qmrBJYyLEyvfvck/wk jDBBMhC9syGN/tcUVssAlsUUezw633d9Xzwcp2wnbevDuLy1SrRBLx5rBhSKweYWMv45 2kKexwfCdNT1fBllVdcXitpHuOuzu7GfHYau9ihBNUaZdWiq9v/zWiShfpY+OEn7OjII HzgaeXN7uYCacWSRICPBuU0/M0QOEEwhioeRqmNyNITT5mF3lZWIuQomQX7rkb+wtD5d 6tdp1gwyUoBhCZBIp1Zg1Ad1CE/rjk03hTvsB6X7oIfC7JvYhkWHapHBQykqPRPhAzeU iWMg== X-Gm-Message-State: AFqh2kqdRC22iEVXD7W6oLN/rX6Y3HL/No5N5b9apl+34o8utKT+DaDD yPPeCatCFBfQCCNcPGbnKlROJA== X-Received: by 2002:a05:600c:4928:b0:3d9:a5a2:65fa with SMTP id f40-20020a05600c492800b003d9a5a265famr5971933wmp.7.1674035168039; Wed, 18 Jan 2023 01:46:08 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:37dc:5071:959c:93e4? ([2a01:e0a:982:cbb0:37dc:5071:959c:93e4]) by smtp.gmail.com with ESMTPSA id p4-20020a05600c1d8400b003da286f8332sm1532050wms.18.2023.01.18.01.46.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Jan 2023 01:46:07 -0800 (PST) Message-ID: Date: Wed, 18 Jan 2023 10:46:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [RFC PATCH v3 2/3] drm/panel: sofef00: Use 16-bit brightness function Content-Language: en-US To: Richard Acayan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , Emil Velikov , Vinay Simha BN , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Daniel Mentz , Caleb Connolly References: <20230116224909.23884-1-mailingradian@gmail.com> <20230116224909.23884-3-mailingradian@gmail.com> Organization: Linaro Developer Services In-Reply-To: <20230116224909.23884-3-mailingradian@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 16/01/2023 23:49, Richard Acayan wrote: > These panels communicate brightness in big endian. This is not a quirk > of the panels themselves, but rather, a part of the MIPI standard. Use > the new mipi_dsi_dcs_set_display_brightness_large() function that > properly handles 16-bit brightness instead of doing special processing > of the brightness values. > > Signed-off-by: Richard Acayan > Tested-by: Caleb Connolly > --- > drivers/gpu/drm/panel/panel-samsung-sofef00.c | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef00.c b/drivers/gpu/drm/panel/panel-samsung-sofef00.c > index 9db49a028930..1ebb79e3103c 100644 > --- a/drivers/gpu/drm/panel/panel-samsung-sofef00.c > +++ b/drivers/gpu/drm/panel/panel-samsung-sofef00.c > @@ -10,7 +10,6 @@ > #include > #include > #include > -#include > #include > > #include