Changeset 5466

Show
Ignore:
Timestamp:
11/30/08 11:29:22 (6 years ago)
Author:
khali
Message:

Drop unused function swap_bytes().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5465 r5466  
    17091709####################### 
    17101710 
    1711 sub swap_bytes 
    1712 { 
    1713   return (($_[0] & 0xff00) >> 8) + (($_[0] & 0x00ff) << 8) 
    1714 } 
    1715  
    17161711# $_[0] is the sought value 
    17171712# @_[1..] is the list to seek in 
     
    23792374# and only start using word reads when there is a good chance that 
    23802375# the detection will succeed. 
    2381 # Note: some devices use the wrong endiannes; use swap_bytes to correct for 
    2382 # this. 
     2376# Note: some devices use the wrong endianness. 
    23832377sub i2c_smbus_read_word_data 
    23842378{