Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a7aef2c authored by Julia Lawall's avatar Julia Lawall Committed by Michael Ellerman
Browse files

powerpc/iommu: Use permission-specific DEVICE_ATTR variants



Use DEVICE_ATTR_RW for read-write attributes.  This simplifies the
source code, improves readbility, and reduces the chance of
inconsistencies.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6ab41161
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -127,8 +127,7 @@ static ssize_t fail_iommu_store(struct device *dev,
	return count;
	return count;
}
}


static DEVICE_ATTR(fail_iommu, S_IRUGO|S_IWUSR, fail_iommu_show,
static DEVICE_ATTR_RW(fail_iommu);
		   fail_iommu_store);


static int fail_iommu_bus_notify(struct notifier_block *nb,
static int fail_iommu_bus_notify(struct notifier_block *nb,
				 unsigned long action, void *data)
				 unsigned long action, void *data)