Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp14457rwb; Fri, 13 Jan 2023 18:10:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXtZn43SgtwhGVcYTb0RESo3nf+ADpwGsi7rkC04fXZ+bUrj65V6wqlo4McNkMzwj0YzGFxH X-Received: by 2002:a17:903:2154:b0:193:2ff0:b665 with SMTP id s20-20020a170903215400b001932ff0b665mr11287410ple.15.1673662213963; Fri, 13 Jan 2023 18:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673662213; cv=none; d=google.com; s=arc-20160816; b=IQ9Wh8ONuEfDGkGA9SuWSScwjP3+s4oMooZbo6CQWu6JcOqIbR+ONow5+DMGPB5OwF J2BQKKsD56kvboRQGVdfQJasZ4hxBNd/LYtJVd/qwJmKVwoVrBz/NVxORnY34lIi+euc o8OgcJ1c5MZSbkzfSQ/DL5s49+rEnKFKPuywuno1eWqpMdmoOAcPsHWqXBR+sxJfL9I8 +lWtTW66v4bH35lIXdDGa8CQuNSr59AB5olOT87+23Dn3//qPnMYNr27NMxyJZw7vAAF 5lCDEceBESe9QEa2gS1T3NVkGroFwepL0DqYHs6Qi47AgE0TJ9mh7rDXzFzoOyF855p3 4LqA== 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=y810J3KzQfR2aqbuK0dns8pKusrycDvek8iL+9qUASA=; b=tORLSW4L5Y6w4W+ejqr/B25QeHCMt7e+2h19hU+I2a3mAdRKdBQXToLffz+s9YUDZz O6GLX+wEx668ma5j4/tBXO8+VCStHp/ZNkx0ylo6axfu1PsMruNs2JXmtPwcN7Q70pME bxRvLTM8X6CwzQWknyjHUIoueaouQdboTnSRVRFylITGwcvmOSW4tZip+u1BNUsaUyNz Sj+DGrW0uOD2K8BwDF5wGnOB678aUXLYysv4GzACAz3LKFebpLBiND+8FmEVPQCtQd6Z gtw32V5XCOPSZh+POwBpQaQeNMAevjwkiagtSPTpikV9XvmN7fYcyb0aWuLSN1RHCBrQ a4qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XdgXKSRU; 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 l3-20020a170903244300b001946ee2516esi4375843pls.174.2023.01.13.18.10.07; Fri, 13 Jan 2023 18:10:13 -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=XdgXKSRU; 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 S231278AbjANBAg (ORCPT + 53 others); Fri, 13 Jan 2023 20:00:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbjANBA3 (ORCPT ); Fri, 13 Jan 2023 20:00:29 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51DD26084B for ; Fri, 13 Jan 2023 17:00:28 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id u8so11601705ilg.0 for ; Fri, 13 Jan 2023 17:00:28 -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=y810J3KzQfR2aqbuK0dns8pKusrycDvek8iL+9qUASA=; b=XdgXKSRUDI7mA+iyCDrtRy1/vl9XhHBZcOwScEEwXnohGQWTnqsKP6oHamJuH3R9k7 YfcQnT/MK1pQZNuBXhtsFmtQU/HclLUclxD0AwjyYgjIUza0MRF2bpeLf3kQKz9nF5Fd X7huRhWt09LLYqY7auT1qkZL8ZQGB6OUU9fzzVYjVASnqJ9DAZL848Q+5m4GT7xjVMdk WYe5pmBGjiWyIT22nkorbSQSfXI8BwHB1rsmEmE9/e0NYhO65tB+FQukZgMQcVUMhdD8 UdU+KUhOkbVXZigpLMqFHVI0TV7sDiFYpjRDEpU1mKa/HWE7u6B/U2u/bbG9QdqYq8Os C8iA== 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=y810J3KzQfR2aqbuK0dns8pKusrycDvek8iL+9qUASA=; b=N1DO40i88DlaMqzjW54AtPY9PwmlEuJUTBCr4Ga7uWPiO6ekNgWaFALrbxzf1RgL1Y gcZIf4QY6OZIuUJgY/7mAMkuV+gAYfW9ZRQhxsRmMUrJ5y5o6AC7yY+/jAuPrjWIJ7NE fwcioiZEBJm2krWASnbxlDUUTsHUljtKkaULN4HvyVrpGiApdS3V6ZE1uyNNdGYwDfQT xPgWKStLjyQGXt3EcX5vYjTaO6KLBRC4153s0MncmIw4ZTou2EQ7y6n0hYaltRRJK3Lb r5j06TYcjzqaCDmfyDgHeAbU/2AVz7W7E/BxBitcunW8UuKx7PI2OTVMRkRrYueSPdR+ JCpg== X-Gm-Message-State: AFqh2kqye4YAr3WrXp2jmmbZFv7rG6LxnT4B6gMlgClUPhmGwG+IZv1Z RZ79HSssAdJn3W5n/4615i1FhMv3QyA= X-Received: by 2002:a92:cc08:0:b0:30d:92c4:8d6 with SMTP id s8-20020a92cc08000000b0030d92c408d6mr7895533ilp.10.1673658028036; Fri, 13 Jan 2023 17:00:28 -0800 (PST) Received: from localhost ([2607:fea8:a2df:3d00::6463]) by smtp.gmail.com with ESMTPSA id x13-20020a92d30d000000b0030c63d62106sm6436094ila.61.2023.01.13.17.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 17:00:27 -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 , Richard Acayan Subject: [RFC PATCH v2 2/2] drm/panel: sofef00: Use 16-bit panel brightness Date: Fri, 13 Jan 2023 20:00:06 -0500 Message-Id: <20230114010006.50471-3-mailingradian@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230114010006.50471-1-mailingradian@gmail.com> References: <20230114010006.50471-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_wide() function that properly handles 16-bit brightness instead of doing special processing of the brightness values. Signed-off-by: Richard Acayan --- 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 1a0d24595faa..014fe350bc59 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