From: Masahiro Yamada Date: Wed, 10 Dec 2014 22:23:52 +0900 Subject: [U-Boot] [PATCH v5 01/11] dm: i2c: Add a uclass for I2C In-Reply-To: <1417793534-31642-2-git-send-email-sjg@chromium.org> References: <1417793534-31642-1-git-send-email-sjg@chromium.org> <1417793534-31642-2-git-send-email-sjg@chromium.org> Message-ID: <20141210222352.02FB.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Fri, 5 Dec 2014 08:32:04 -0700 Simon Glass wrote: > +struct dm_i2c_chip { > + uint chip_addr; > + uint offset_len; > + uint flags; > +#ifdef CONFIG_SANDBOX > + struct udevice *emul; > +#endif > +}; I do not like this ifdef conditional. As mentioned in another reply, I suppose we can move to sandbox-i2c. Anyway, other parts look good enough. Reviewed-by: Masahiro Yamada