dm: i2c: Add functions to read and write a register
authorSimon Glass <sjg@chromium.org>
Mon, 20 Apr 2015 18:37:14 +0000 (12:37 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:19 +0000 (20:58 -0600)
commitba3864f8037f58dd1f46cad3b76adc0a84bd33b3
treec635c755acd3922067cba3c1ca98a100ec5059fe
parent1bde67b1f492cbb0177241a56af59f706d45fccf
dm: i2c: Add functions to read and write a register

Add driver model versions of the legacy functions to read and write a
single byte register. These are a useful shortcut in many cases.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-uclass.c
include/i2c.h