Commit c0a1e0a8 authored by Federico Vaga's avatar Federico Vaga

fa-zio-trg.c: fix info_get for re-enable attribute

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 74fd9f0c
......@@ -154,7 +154,8 @@ static int zfat_info_get(struct device *dev, struct zio_attribute *zattr,
uint32_t *usr_val)
{
zfa_common_info_get(dev, &zfad_regs[zattr->priv.addr], usr_val);
if (zattr->priv.addr == ZFAT_SHOTS_NB)
(*usr_val)--;
return 0;
}
static const struct zio_sysfs_operations zfat_s_op = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment