Skip to content

Commit

Permalink
drivers/scsi/sr_vendor.c: use bcd2bin
Browse files Browse the repository at this point in the history
Change sr_vendor.c to use the new bcd2bin function instead of the obsolete
BCD2BIN macro.

Signed-off-by: Adrian Bunk <[email protected]>
Cc: James Bottomley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and torvalds committed Oct 20, 2008
1 parent e4d3396 commit 2cee5df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/scsi/sr_vendor.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ int sr_cd_check(struct cdrom_device_info *cdi)
no_multi = 1;
break;
}
min = BCD2BIN(buffer[15]);
sec = BCD2BIN(buffer[16]);
frame = BCD2BIN(buffer[17]);
min = bcd2bin(buffer[15]);
sec = bcd2bin(buffer[16]);
frame = bcd2bin(buffer[17]);
sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame;
break;
}
Expand All @@ -252,9 +252,9 @@ int sr_cd_check(struct cdrom_device_info *cdi)
}
if (rc != 0)
break;
min = BCD2BIN(buffer[1]);
sec = BCD2BIN(buffer[2]);
frame = BCD2BIN(buffer[3]);
min = bcd2bin(buffer[1]);
sec = bcd2bin(buffer[2]);
frame = bcd2bin(buffer[3]);
sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame;
if (sector)
sector -= CD_MSF_OFFSET;
Expand Down

0 comments on commit 2cee5df

Please sign in to comment.