From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Fri, 31 Mar 2017 22:23:04 -0600 Subject: [U-Boot] [PATCH 2/6] led: gpio: add support for get_status function In-Reply-To: <1490625523-11594-2-git-send-email-techping.chan@gmail.com> References: <1490625523-11594-1-git-send-email-techping.chan@gmail.com> <1490625523-11594-2-git-send-email-techping.chan@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27 March 2017 at 08:38, wrote: > From: Ziping Chen > > The status of a GPIO-connected LED can be read back by reading the GPO > value. > > Add the support for get_status function in led_gpio driver. > > Signed-off-by: Ziping Chen > --- > drivers/led/led_gpio.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) Reviewed-by: Simon Glass (although I have a version of this patch which expands status to return the blink state also)