[PATCH 2.6] Refactor swap_bytes in i2c chip drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 29, 2004 at 09:23:03PM +0200, Jean Delvare wrote:
> Hi Greg,
> 
> This simple patch refactors the swap_bytes function that various chip
> drivers use. I moved it to lm75.h because all drivers using lm75-like
> temperature sensors will most necessarily need to swap bytes.
> 
> Apply if you like it,

Ick, no, we should be using the proper kernel call for this, swab16(),
right?  Care to redo this patch to just fix the drivers and get rid of
our duplicating of this function.

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux