]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: designware_i2c: Use an enum for selected speed mode
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:08 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:19:13 +0000 (07:19 +0100)
commit65190d15efffc0c3700e59654ead4ef149981ad4
treed95ff7f472b08064c6a29df76c7af0fc49af1e4c
parent6db7943b92f7a4b5858b6a68f137462ed0293e09
i2c: designware_i2c: Use an enum for selected speed mode

Group these #defines into an enum to make it easier to understand the
relationship between them.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jun Chen <ptchentw@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/designware_i2c.c
drivers/i2c/designware_i2c.h