forked from len0rd/rockbox
ata: Parameterize the SMART query, add support to primary ATA driver
There are numerous sub-commands, this makes it possible to call the others. Also in this patch is the ability for the "default" ATA driver to query smart data too Change-Id: Ie3aaf9e0b2d7a5d25d09dea34e4f10ee29047e1b
This commit is contained in:
parent
e09829a71d
commit
c307fd5525
5 changed files with 56 additions and 13 deletions
|
@ -1753,7 +1753,7 @@ static int ata_smart_callback(int btn, struct gui_synclist *lists)
|
|||
{
|
||||
int rc;
|
||||
memset(&smart_data, 0, sizeof(struct ata_smart_values));
|
||||
rc = ata_read_smart(&smart_data);
|
||||
rc = ata_read_smart(&smart_data, ATA_SMART_READ_DATA);
|
||||
simplelist_reset_lines();
|
||||
if (rc == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue