static ssize_t dsp_mem_read(struct file *file, char __user *buf, size_t count,
loff_t *ppos)
{
- return __omap_mmu_mem_read(&dsp_mmu, (char __user *)buf, *ppos, count);
+ struct bin_attribute attr;
+
+ return __omap_mmu_mem_read(&dsp_mmu, &attr,
+ (char __user *)buf, *ppos, count);
}
static ssize_t dsp_mem_write(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{
- return __omap_mmu_mem_write(&dsp_mmu,
+ struct bin_attribute attr;
+
+ return __omap_mmu_mem_write(&dsp_mmu, &attr,
(char __user *)buf, *ppos, count);
}
return count;
}
-static ssize_t omap_mmu_mem_read(struct kobject *kobj, char *buf,
- loff_t offset, size_t count)
+static ssize_t omap_mmu_mem_read(struct kobject *kobj,
+ struct bin_attribute * attr,
+ char *buf, loff_t offset, size_t count)
{
struct device *dev = to_dev(kobj);
struct omap_mmu *mmu = dev_get_drvdata(dev);
return count;
}
-static ssize_t omap_mmu_mem_write(struct kobject *kobj, char *buf,
- loff_t offset, size_t count)
+static ssize_t omap_mmu_mem_write(struct kobject *kobj,
+ struct bin_attribute * attr,
+ char *buf, loff_t offset, size_t count)
{
struct device *dev = to_dev(kobj);
struct omap_mmu *mmu = dev_get_drvdata(dev);
};
/* To be obsolete for backward compatibility */
-ssize_t __omap_mmu_mem_read(struct omap_mmu *mmu, char *buf,
- loff_t offset, size_t count)
+ssize_t __omap_mmu_mem_read(struct omap_mmu *mmu,
+ struct bin_attribute * attr,
+ char *buf, loff_t offset, size_t count)
{
- return omap_mmu_mem_read(&mmu->dev.kobj, buf, offset, count);
+ return omap_mmu_mem_read(&mmu->dev.kobj, attr, buf, offset, count);
}
EXPORT_SYMBOL_GPL(__omap_mmu_mem_read);
-ssize_t __omap_mmu_mem_write(struct omap_mmu *mmu, char *buf,
- loff_t offset, size_t count)
+ssize_t __omap_mmu_mem_write(struct omap_mmu *mmu,
+ struct bin_attribute * attr,
+ char *buf, loff_t offset, size_t count)
{
- return omap_mmu_mem_write(&mmu->dev.kobj, buf, offset, count);
+ return omap_mmu_mem_write(&mmu->dev.kobj, attr, buf, offset, count);
}
EXPORT_SYMBOL_GPL(__omap_mmu_mem_write);
int exmap_valid(struct omap_mmu *mmu, void *vadr, size_t len);
/* To be obsolete for backward compatibility */
-ssize_t __omap_mmu_mem_read(struct omap_mmu *mmu, char *buf, loff_t offset, size_t count);
-ssize_t __omap_mmu_mem_write(struct omap_mmu *mmu, char *buf, loff_t offset, size_t count);
+ssize_t __omap_mmu_mem_read(struct omap_mmu *mmu, struct bin_attribute *, char *buf, loff_t offset, size_t count);
+ssize_t __omap_mmu_mem_write(struct omap_mmu *mmu, struct bin_attribute *, char *buf, loff_t offset, size_t count);
#endif /* __ARCH_OMAP_MMU_H */