
12 Apr
2016
12 Apr
'16
5:49 a.m.
On 04/11/2016 11:01 PM, Eric Nelson wrote:
Many drivers use a common form of offset + flags for device tree nodes. e.g.: <&gpio1 2 GPIO_ACTIVE_LOW>
This patch adds a common implementation of this type of parsing and calls it when a gpio driver doesn't supply its' own xlate routine.
This will allow removal of the driver-specific versions in a handful of drivers and simplify the addition of new drivers.
Signed-off-by: Eric Nelson eric@nelint.com Acked-by: Stephen Warren swarren@wwwdotorg.org
Reviewed-by: Purna Chandra Mandal purna.mandal@microchip.com