[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200915182436.6e90f9d0@nic.cz>
Date: Tue, 15 Sep 2020 18:24:36 +0200
From: Marek Behun <marek.behun@....cz>
To: linux-leds@...r.kernel.org
Cc: Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>,
Ondřej Jirman <megous@...ous.com>,
Russell King <linux@...linux.org.uk>,
Andrew Lunn <andrew@...n.ch>, linux-kernel@...r.kernel.org,
Matthias Schiffer <matthias.schiffer@...tq-group.com>,
Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org
Subject: Re: [PATCH leds + devicetree v2 1/2] leds: trigger: add trigger
sources validating method and helper functions
On Tue, 15 Sep 2020 17:26:15 +0200
Marek Behún <marek.behun@....cz> wrote:
> + /*
> + * Check whether LED has defined valid source for this trigger.
> + * If yes, this trigger should be set as default trigger for LED.
> + * This should use of_led_count_trigger_sources and
> + * of_led_get_trigger_source functions.
> + */
> + bool (*has_valid_source)(struct led_classdev *led_cdev);
Hmm, the heartbeat and timer triggers do not need trigger sources. If
we want to deprecate linux,default-trigger device tree property for
these triggers also, this method should look to `function` DT property
for heartbeat and timer triggers.
In that case the name should be changed to something like
of_is_valid_default_for, or something like that.
Marek
Powered by blists - more mailing lists