From mboxrd@z Thu Jan 1 00:00:00 1970 From: pawel.moll@arm.com (Pawel Moll) Date: Thu, 08 Nov 2012 15:35:52 +0000 Subject: [PATCH 1/2] leds: Add generic support for memory mapped LEDs In-Reply-To: <1351792722-15250-1-git-send-email-pawel.moll@arm.com> References: <1351792722-15250-1-git-send-email-pawel.moll@arm.com> Message-ID: <1352388952.20549.12.camel@hornet> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Bryan, Richard, On Thu, 2012-11-01 at 17:58 +0000, Pawel Moll wrote: > LEDs are often controlled by writing to memory mapped > register. This patch adds: > > 1. Generic functions for platform code and drivers to create > class device for LEDs controlled by arbitrary bit masks. > The control register value is read, modified by logic AND > and OR operations with respective mask and written back. > > 2. A platform driver for simple use case when one or more LED > are controlled by consecutive bits in a register pointed > at by the platform device's memory resource. It can be > particularly useful for MFD cells being part of an other > device. > > Signed-off-by: Pawel Moll It's just a friendly and polite nag - any thoughts or feelings about this? Cheers! Pawe?