Hi Evan, > changes in v2: > - changed lowercase "pca to uppercase "PCA". > - reworded and reformatted the multiline comment. > - moved the clock frequency KERN_INFO closer to the call that sets this. > - moved the i2c_bus_settings struct to the more generic i2c.h and removed > - the comments indicating this as being for the pca chip.
As mentioned in v1, I think we should not have it in the generic i2c headers yet. a) it makes backporting more difficult and b) we need to find the optimal generic set of parameters which is a seperate issue. > > - pca_reset(pca_data); > - > clock = pca_clock(pca_data); > + > printk(KERN_INFO "%s: Clock frequency is %dkHz\n", > adap->name, freqs[clock]); Minor nit: I think there is no need for the extra blank line, but I'll let you decide. > +/** > + * struct i2c_bus_settings - The configured i2c bus settings > + * @mode: Configured i2c bus mode > + * @tlow: Configured SCL LOW period > + * @thi: Configured SCL HIGH period > + * @clock_freq: The configured clock frequency > + */ > +struct i2c_bus_settings { 'pca_i2c_bus_settings' or similar? Rest looks good! Thanks, Wolfram
signature.asc
Description: PGP signature