]> git.baikalelectronics.ru Git - kernel.git/commit
leds: tca6507: use swap() to make code cleaner
authorYihao Han <hanyihao@vivo.com>
Mon, 15 Nov 2021 03:24:28 +0000 (19:24 -0800)
committerPavel Machek <pavel@ucw.cz>
Wed, 12 Jan 2022 18:43:14 +0000 (19:43 +0100)
commit63716049bba8bac33723f72d1929da6aa69436f7
tree0874152a36d5a2e79270cd35c07441781e486aa5
parent414aa5cfdbcaf7b0287c87c57bc9df7da15d536d
leds: tca6507: use swap() to make code cleaner

Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
opencoding it.

Signed-off-by: Yihao Han <hanyihao@vivo.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-tca6507.c