On Wed, 6 May 2015 15:46:13 +0530, Sudip Mukherjee wrote: > parport subsystem starts using the device-model. drivers using the > device-model has to define probe and should register the device with > parport with parport_register_dev_model() > > Signed-off-by: Sudip Mukherjee <su...@vectorindia.org> > ---
Just one think I noticed while reviewing the i2c-parport patches: > +struct pardevice * > +parport_register_dev_model(struct parport *port, const char *name, > + struct pardev_cb *par_dev_cb, int cnt) par_dev_cb isn't modified by this function so it should be const. Also I don't much like the name "cnt", as the value is not a count, it's an index or identifier. What about "id"? -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/