Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1104441pxv; Fri, 25 Jun 2021 05:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypDQDhajoialIu84woIXtAW9pNi30T55gBhYz0TnCFoUA+0WkRr9xXggntApJMLaAgZ9XW X-Received: by 2002:a17:906:4b59:: with SMTP id j25mr10422440ejv.511.1624624892438; Fri, 25 Jun 2021 05:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624624892; cv=none; d=google.com; s=arc-20160816; b=fufiEmS0dPuwI7F2zphkkhmA18nilOGv6G3qVEm7UJNs2aEgc7eaEqV3sHtZLOhzLb tNxPr5akH3HhtePCZgqmvw4BYUjqlXLOQA7czG31b1scUykdmZRnCIhTQ0Rhgsc/eVbb yDvDOQ0oUnasxV5mOB8CEhC75HMaLMchwXY2ptD/pXXkCtc75+ybiv7xIidJ6DpyV1FM 5j2t3w1NDUFGQ4FG1HNqbzMgO7AznqkKJPfpkX2ybdRE7VzLR1BMz++25zXmQ1qiRaDD PQLL8hQZtKqEPDdKYA2meso1VoZKf0CqYH8+rfLx/wI4z0HdUm261FS84LKIG/I8ZBMX Qouw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=BdAFQrYjZ7tFOmYJ4XAsP96fFhUM3/tL0iMbvfXhUVA=; b=kLtYbJUNM4UOLAiicu2hDHCcFuSgFNLJAcNTMWJ2Lv0fxpVSZ5fYljgh/sQmhxan0I 7+P4qy23hnXy0b8a2nClVZ7QNCBfOK2c0teuWJgiHxO4vNOBpkWlwjfMsy18B4Q0a5sA 4GJNyey5HdN/dwDc0B3V6SvkYfcIGO6HpEyC/RXvgK3ng7ndXwJyDlACwt46wHERW5kg 6Qvn3FNH8ktJ1RCpJqQuEB36Iw4l8N8+dFW0Rbtpb4dfHZduDyXj/jxLs5n8tMWPJp4A 8TEqDGlMr09NzqW61drgIRunyaDbT5ibto7qHAsEQPMJdEUFLgA5NjSo54sUKpagriu6 SeuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si5537657eji.574.2021.06.25.05.41.08; Fri, 25 Jun 2021 05:41:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231304AbhFYMmN (ORCPT + 99 others); Fri, 25 Jun 2021 08:42:13 -0400 Received: from mail-vk1-f181.google.com ([209.85.221.181]:44693 "EHLO mail-vk1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhFYMmN (ORCPT ); Fri, 25 Jun 2021 08:42:13 -0400 Received: by mail-vk1-f181.google.com with SMTP id w1so2043076vkg.11; Fri, 25 Jun 2021 05:39:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BdAFQrYjZ7tFOmYJ4XAsP96fFhUM3/tL0iMbvfXhUVA=; b=YH1Eak56KEbjaEIVcXd8xFwe5QAF6mFqvZ+iFSUcGNzoVIXHetbulVYs2cBTHbB/m5 uhYpQNDyWUxXS5Qa0DSQSGmpCxEMS7lJcYfxvlwWLZ5h2zufLtK7T5msjXJCNBzmom8S Skjz/GD59OH5BI9PkoU1q3FStenYGbJh1SbGEeOfvH92y9Lstb2dOnxysMEAYRdoA5PE 9Fz6MyEJakXq1jglEUNAccvm03NUUAERlV3aGzC80mRr+Ju3YjzIF9DByOl9X7T0VqRH YVoMUFrm39u6nR7X2veRiMdd+E7YHkhhrK+Oh7Fxhl0lNeIDpFJyPQ+9W7kehYp+ZFLm MtTA== X-Gm-Message-State: AOAM532zfiZafocjEkZmnysF8lmK957vAgNXL0Ji0Na4cMkHhSmMgfeK Z3gAhBIBEQRhh6e2vVHjRGE47/k0ivDCCscr3BHTjPKR2sg= X-Received: by 2002:a1f:ac45:: with SMTP id v66mr7482776vke.1.1624624792112; Fri, 25 Jun 2021 05:39:52 -0700 (PDT) MIME-Version: 1.0 References: <20210322144848.1065067-1-geert@linux-m68k.org> <20210322144848.1065067-18-geert@linux-m68k.org> <543ec200931af3192541fef51bc8e96a@protonic.nl> <20210323204038.GA10002@duo.ucw.cz> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 25 Jun 2021 14:39:40 +0200 Message-ID: Subject: Re: [PATCH 17/17] auxdisplay: ht16k33: Add segment display LED support To: Pavel Machek Cc: Robin van der Gracht , Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:BROADCOM NVRAM DRIVER" , Linux Kernel Mailing List , linux-leds Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 24, 2021 at 9:31 AM Geert Uytterhoeven wrote: > On Tue, Mar 23, 2021 at 9:40 PM Pavel Machek wrote: > > > CC linux-leds (which I intended, but forgot to add) > > > > > > cover letter at > > > https://lore.kernel.org/linux-devicetree/20210322144848.1065067-1-geert@linux-m68k.org/ > > > > > + err = ht16k33_brightness_set(priv, seg->led.brightness); > > > > > if (err) > > > > > return err; > > > > > > > > The LED class can pretty much do what the backlight class can and more. > > > > > > > > Maybe we can stop registering a backlight device in the fbdev case and > > > > register a led device for both. This makes the code cleaner and drops > > > > a dependency but will break backwards compatibility. > > > > > > > > I'd prefer a single solution that covers both use cases, but I'm not > > > > sure about the 'breaking backwards compatibility' consequence... > > > > For new drivers, breaking compatibility should not be a problem. > > The dot-matrix support is part of the existing driver, thus subject to > backwards compatibility. > Perhaps we can register the LED device for both, and build the backlight > device on top of the LED device, like "led-backlight" does. Would that > work? Or can't the LED no longer be controlled from sysfs (e.g. > triggers) if it is in use by a backlight driver? Using "led-backlight", the backlight can no longer be controlled from sysfs, precluding the use of other triggers incl. hardware blinking. But a normal LED can be used as a backlight, with ledtrig-backlight, so that is the most flexible option, but only if no backwards compatibility is to be considered. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds