Skip to content

Commit

Permalink
libata: s/ata_id_removeable()/ata_id_removable()/
Browse files Browse the repository at this point in the history
Changes the spelling typos of removeable to removable where
ata_id_removeable is defined in ata.h and called in libata-scsi.c
respectively.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Nicholas Krause authored and Tejun Heo committed Dec 25, 2014
1 parent 97bf6af commit 0628ee7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1995,8 +1995,8 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf)

VPRINTK("ENTER\n");

/* set scsi removeable (RMB) bit per ata bit */
if (ata_id_removeable(args->id))
/* set scsi removable (RMB) bit per ata bit */
if (ata_id_removable(args->id))
hdr[1] |= (1 << 7);

if (args->dev->class == ATA_DEV_ZAC) {
Expand Down
2 changes: 1 addition & 1 deletion include/linux/ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ struct ata_bmdma_prd {
#define ata_id_has_dma(id) ((id)[ATA_ID_CAPABILITY] & (1 << 8))
#define ata_id_has_ncq(id) ((id)[ATA_ID_SATA_CAPABILITY] & (1 << 8))
#define ata_id_queue_depth(id) (((id)[ATA_ID_QUEUE_DEPTH] & 0x1f) + 1)
#define ata_id_removeable(id) ((id)[ATA_ID_CONFIG] & (1 << 7))
#define ata_id_removable(id) ((id)[ATA_ID_CONFIG] & (1 << 7))
#define ata_id_has_atapi_AN(id) \
((((id)[ATA_ID_SATA_CAPABILITY] != 0x0000) && \
((id)[ATA_ID_SATA_CAPABILITY] != 0xffff)) && \
Expand Down

0 comments on commit 0628ee7

Please sign in to comment.