Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3903303rwb; Mon, 16 Jan 2023 15:00:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXvBG8DArvFQNqzfoPjUs6KPQDJArnRQeZKFm8yH1opfoiJJzZ0IQSPfNuVPcBB2jprJMZv+ X-Received: by 2002:a17:906:dfe9:b0:84d:378b:8820 with SMTP id lc9-20020a170906dfe900b0084d378b8820mr14993289ejc.18.1673910006140; Mon, 16 Jan 2023 15:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673910006; cv=none; d=google.com; s=arc-20160816; b=sQP0Bqg9XLixV9OUU4OcTMbD4iZWQ4YrWPH8zugPbLXJlw8V1FmrwP95F+uUjue9Ir P6aF0Rap5Bkmc1U6hEfQgvICm9qUHG3Lg+b7FhygRMKmKPjM8/g8WKaAWy5KnaqHcZce ExZPVp1lQQYMExeKCBU6+iAIsnB8c+6a2uhEaOJIsE8wwxkMAJeFGB4cyNdiBwV5o1Qo K50SweK8bmPp8d4Vd6qJJlDteeSHl6Qqc/7bwh3rgRG5Ss+JB/26W8jCuE9FTeRWgRyY fxWII9Zem/bh0rTt6g+snIXpjjHnxOzmNm+Gvc+7RUzQ/xxAG5t3gdEPXDFI7CLHq3tb ljfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=omKF2YX7pGIZQKEcRL/MvPMHB5a+dIUWO4cJUKQU+u0=; b=NY4YswhFlKpQ0Zgii+QXRZR1BPg0q98/xlioM1ROfa/mm5B2/C/LIiHLRplXbmWoSV 30p/xylsKNqU58Oksg+pf4qR5ByZHbE2wf6xDJlw1HoDgg2KzT6RSanjgiFaddRZ4rax 4cq0tR/v/RZiQEYv1/yKVPG6zPNSKmrWDsxnpzBBKTabNKXMjWg6agNrjqXr+Z/OA3zb IklR/5Rqd3jssEBwnsy2RNDZmVrmU6q5HnB/B2Gl9SnTPS2nQWhlJaLngHIKQ4HSj1K/ OcDkZRkKwPkUJx2fz2LSg+UFwCAhRXpJuvJApE71MWh8ViWKs1ryitP+q7AdU9NsGBEa nWFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="CZ/0UTas"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du8-20020a17090772c800b007c4f4d0427dsi32001017ejc.409.2023.01.16.14.59.52; Mon, 16 Jan 2023 15:00:06 -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=@gmail.com header.s=20210112 header.b="CZ/0UTas"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235110AbjAPWuJ (ORCPT + 51 others); Mon, 16 Jan 2023 17:50:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232972AbjAPWtr (ORCPT ); Mon, 16 Jan 2023 17:49:47 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D7A025E2C for ; Mon, 16 Jan 2023 14:49:47 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id r71so5204147iod.2 for ; Mon, 16 Jan 2023 14:49:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=omKF2YX7pGIZQKEcRL/MvPMHB5a+dIUWO4cJUKQU+u0=; b=CZ/0UTase2xAs8lxHI9UeqC/wdKvzNYmpbiDBVrjqyYZGIKUGnIUNlcy3Cwp+wmDeR d3c6Pb98pr5Y/PoyKbSFMnaVb1YvbkpejVW6ZEyWUR648sqhTe5Y9lca6Qy8qA1wFTUO 0d2hmxgAwMij76ziFQpzZomOFM0vUZtIBM6fuaKo1TEuXX7r5yd/8Tr5IrpR6xpJxYF9 GegZ+ZW1ybWZP2QuyhV7THjLgR8U3isBjeWRdx8ArOk6hPq7TLgc4YNxrttoTeRYqlQ0 KxYahUCJMpiI69XCFQwKHfjWo8DkCy+Zhf2TOr/W4are0BoAi4XuyBfpAfyk0pI6Tsl/ SFqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=omKF2YX7pGIZQKEcRL/MvPMHB5a+dIUWO4cJUKQU+u0=; b=G8tg2jNNKknHRUrU/ZeNZ5JN+3GvuY4eKQod4LwtCL5SbJEr8qtAnQiwkcnJOViT22 KZjz/46+JBK670my1M3G+YMUuk1vudCb9W1GpiJSXVcTB7qdt/dOLUGstsL54iX0VM02 n8GT6XH4ZhsxEzf+nTQwpJP7ajN+BUShQ95vqcICXvglvdTdZhezBiOLDQlHNWbF7M4j urPjsFDrrjkZhpxvHrbSaEKskFsYDRJZAr7cSvTe+IzHq9r1Fcr61c+dA9mTHH3OFjMs 3A1r1fpKKIPFvJH8GNm21uFJKfj+i3snuhbC3cNvUMTnnLVUQTKXQK0JcdqKor1ssbpf 4UcA== X-Gm-Message-State: AFqh2krjyeb+AINZrY0H8l6LJxrP8GsXiQoQ6BjVha4189oftgxpLQtI 5XDrGEfzlJEJbkR14lKYiCE= X-Received: by 2002:a05:6602:378a:b0:6e0:10d3:9631 with SMTP id be10-20020a056602378a00b006e010d39631mr695736iob.16.1673909386891; Mon, 16 Jan 2023 14:49:46 -0800 (PST) Received: from localhost ([2607:fea8:a2df:3d00::6be]) by smtp.gmail.com with ESMTPSA id z25-20020a056638215900b003a3dd1c7be7sm1791841jaj.128.2023.01.16.14.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 14:49:46 -0800 (PST) From: Richard Acayan To: 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 , Neil Armstrong , Richard Acayan Subject: [RFC PATCH v3 2/3] drm/panel: sofef00: Use 16-bit brightness function Date: Mon, 16 Jan 2023 17:49:08 -0500 Message-Id: <20230116224909.23884-3-mailingradian@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116224909.23884-1-mailingradian@gmail.com> References: <20230116224909.23884-1-mailingradian@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 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