From patchwork Sun Aug 20 09:41:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julius Zint X-Patchwork-Id: 13358730 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9D9FEE4993 for ; Sun, 20 Aug 2023 09:46:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbjHTJqu (ORCPT ); Sun, 20 Aug 2023 05:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbjHTJqn (ORCPT ); Sun, 20 Aug 2023 05:46:43 -0400 Received: from relay.yourmailgateway.de (relay.yourmailgateway.de [188.68.63.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D509B116; Sun, 20 Aug 2023 02:42:48 -0700 (PDT) Received: from mors-relay-2501.netcup.net (localhost [127.0.0.1]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4RT9dK4zvjz61sl; Sun, 20 Aug 2023 11:42:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zint.sh; s=key2; t=1692524565; bh=Y1lfCYJSajJUwTdBl3a/8wqulGBpXhVxDAJSoFV9FuA=; h=From:To:Cc:Subject:Date:From; b=bB3IY0A5amjWO+5WW2j54b5tuEJVrcWkq7qLVXoviI1mzJdzK0O1iZzrc9eSr7Br2 Xsmp/ZgeOvgpsGL6EwZQ5yktaNwm01IirT+sj0lLCSZXx4/3yCzMW+jDZi/n2ZECSA MoXNS9fVIwiGTSn+agEGA/gdC1muaoY4ErQb9CEZjBTtc57Dt2245I7fNYrOGoN/nA CVhZcPK1sX08Jy4BaDNbGQuvI9INLGmrEpXyPFVPCAubxgiO+LdUtzAuYJ9IRpyc/f zPA9WzehDjAag8JXktdYK6iomvsxeetSpv5bqJJK+H2wb9KeeYnIVrshNOv5K3nYyf 2fdvkVTJyw7IQ== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4RT9dK4G8hz4wYs; Sun, 20 Aug 2023 11:42:45 +0200 (CEST) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4RT9dJ3KWmz8sWg; Sun, 20 Aug 2023 11:42:44 +0200 (CEST) Received: from thinkpad.fritz.box (p5dcce04c.dip0.t-ipconnect.de [93.204.224.76]) by mxe217.netcup.net (Postfix) with ESMTPSA id C3E6481728; Sun, 20 Aug 2023 11:42:28 +0200 (CEST) From: Julius Zint To: Lee Jones , Daniel Thompson , Jingoo Han , Jiri Kosina , Benjamin Tissoires Cc: Helge Deller , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-input@vger.kernel.org, linux-fbdev@vger.kernel.org, Julius Zint Subject: [PATCH v3 0/1] HID backlight driver Date: Sun, 20 Aug 2023 11:41:17 +0200 Message-ID: <20230820094118.20521-1-julius@zint.sh> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: C3E6481728 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: o99rhNWMntfG8PvlZYqJr2wkw11yMiRwqBscVEe9 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This patch adds support for HID backlight devices, found in the Apple Studio Display. Changes in v1 [1]: - Add USB backlight driver for Studio Display Changes in v2 [2]: - Rewrite from a USB driver to a HID driver Changes in v3: - Added missing hid_bl prefix for some functions - Early exit in probe when HID parsing fails - Add return code to error logs - Adding HID Maintainers for review [1] https://lore.kernel.org/dri-devel/20230701120806.11812-1-julius@zint.sh/ [2] https://lore.kernel.org/dri-devel/20230806091403.10002-1-julius@zint.sh/ Julius Zint (1): backlight: hid_bl: Add VESA VCP HID backlight driver drivers/video/backlight/Kconfig | 8 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/hid_bl.c | 269 +++++++++++++++++++++++++++++++ 3 files changed, 278 insertions(+) create mode 100644 drivers/video/backlight/hid_bl.c base-commit: dfd122fe8591d513b5e51313601217b67ae98d13