Hi! > >> +struct regval_list { > >> + uint16_t addr; > >> + uint8_t data; > >> +}; > > u8/u16? > > This sensor uses 16 bits for addresses and 8 for data, so I think it makes > sense > to keep it this way.
Yes, you can do it. But please use u8/u16 types (also elsewhere in the driver), they are more common in ther kernel. > Thanks for the feedback. I agree with most of your suggestions, and I > commented > with the one I didn't agree. You are welcome, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
signature.asc
Description: Digital signature