Home
last modified time | relevance | path

Searched hist:eccb7fe5e72a88455b13c77bc3bc381dbb45bd9a (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/watchdog/
H A Dimx7ulp_wdt.ceccb7fe5e72a88455b13c77bc3bc381dbb45bd9a Tue Oct 29 17:40:37 UTC 2019 Fabio Estevam <festevam@gmail.com> watchdog: imx7ulp: Use definitions instead of magic values

Use definitions instead of magic values in order to improve readability.

Since the CLK field of the WDOG CS register is composed of two bits
to select the watchdog clock source, use a shift representation
instead of BIT().

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191029174037.25381-5-festevam@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>