mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
Drop unused function swap_bytes().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5466 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1664a9eb0f
commit
66fe01e8a8
1 file changed
+1
-7
@@ -1708,11 +1708,6 @@ use vars qw(@cpu_ids);
|
|||||||
# AUXILIARY FUNCTIONS #
|
# AUXILIARY FUNCTIONS #
|
||||||
#######################
|
#######################
|
||||||
|
|
||||||
sub swap_bytes
|
|
||||||
{
|
|
||||||
return (($_[0] & 0xff00) >> 8) + (($_[0] & 0x00ff) << 8)
|
|
||||||
}
|
|
||||||
|
|
||||||
# $_[0] is the sought value
|
# $_[0] is the sought value
|
||||||
# @_[1..] is the list to seek in
|
# @_[1..] is the list to seek in
|
||||||
# Returns: 0 on failure, 1 if found.
|
# Returns: 0 on failure, 1 if found.
|
||||||
@@ -2378,8 +2373,7 @@ sub i2c_smbus_read_byte_data
|
|||||||
# so you should do as much of the detection as possible using byte reads,
|
# so you should do as much of the detection as possible using byte reads,
|
||||||
# and only start using word reads when there is a good chance that
|
# and only start using word reads when there is a good chance that
|
||||||
# the detection will succeed.
|
# the detection will succeed.
|
||||||
# Note: some devices use the wrong endiannes; use swap_bytes to correct for
|
# Note: some devices use the wrong endianness.
|
||||||
# this.
|
|
||||||
sub i2c_smbus_read_word_data
|
sub i2c_smbus_read_word_data
|
||||||
{
|
{
|
||||||
my ($file, $command) = @_;
|
my ($file, $command) = @_;
|
||||||
|
|||||||
Reference in new issue
Block a user