From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E95CCC432C3 for ; Mon, 25 Nov 2019 14:50:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD9F7207FD for ; Mon, 25 Nov 2019 14:50:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728329AbfKYOuw (ORCPT ); Mon, 25 Nov 2019 09:50:52 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:39280 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728280AbfKYOuu (ORCPT ); Mon, 25 Nov 2019 09:50:50 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id ACD1DFB03; Mon, 25 Nov 2019 15:50:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fEh5mS4__lqC; Mon, 25 Nov 2019 15:50:45 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id C616949289; Mon, 25 Nov 2019 15:47:58 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Jacek Anaszewski , Pavel Machek , Dan Murphy , Kate Stewart , Thomas Gleixner , Enrico Weigelt , Allison Randal , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/1] leds: backlight: Register with class backlight Date: Mon, 25 Nov 2019 15:47:57 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When using current LCD drivers as ledtrig backlight they're not registered with the backlight device class. This has two problems: they're usually not found by userspace since these tools usually look in /sys/class/backlight and they can't be used as backlight phandles in device tree for e.g. LCD panels. This is an RFC if this is worthwhile at all? A current problem is that changing the LED brightness does currently not notify the class backlight so they can get out of sync but i could look into that if the approach makes sense. Guido Günther (1): leds: backlight: register with class backlight too drivers/leds/trigger/ledtrig-backlight.c | 54 ++++++++++++++++++++++++ 1 file changed, 54 insertions(+) -- 2.23.0