On Fri, May 15, 2015 at 01:37:44PM +0200, Uwe Kleine-König wrote: > Hello Wolfram, > > On Thu, May 14, 2015 at 02:40:02PM +0200, Wolfram Sang wrote: > > From: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> > > > > So users can check in advance if there is slave support. > I wonder if the core should check if .{,un}reg_slave is != NULL and > automatically set this bit accordingly. I thought about this, too, but decided against it. Maybe some driver doesn't want to make its slave interface public because it is specialized for one use-case only (thinking ECs here)? Also, doing it would be a little inconsistent, since we could do the same for I2C_FUNC_I2C when master_xfer is populated. So, let's start simple I'd say.
Attachment:
signature.asc
Description: Digital signature