mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
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: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
6ab41161b4
commit
8a7aef2cb3
@ -127,8 +127,7 @@ static ssize_t fail_iommu_store(struct device *dev,
|
||||
return count;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(fail_iommu, S_IRUGO|S_IWUSR, fail_iommu_show,
|
||||
fail_iommu_store);
|
||||
static DEVICE_ATTR_RW(fail_iommu);
|
||||
|
||||
static int fail_iommu_bus_notify(struct notifier_block *nb,
|
||||
unsigned long action, void *data)
|
||||
|
Loading…
Reference in New Issue
Block a user