14 Feb
2019
14 Feb
'19
2:33 p.m.
On Wed, 13 Feb 2019 23:07:34 +0100, Pierre-Louis Bossart wrote:
+void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value) +{
- writel(value, addr);
+} +EXPORT_SYMBOL(sof_io_write);
+u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr) +{
- return readl(addr);
+} +EXPORT_SYMBOL(sof_io_read);
+void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value) +{
- writeq(value, addr);
+} +EXPORT_SYMBOL(sof_io_write64);
+u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr) +{
- return readq(addr);
+} +EXPORT_SYMBOL(sof_io_read64);
What's the merit of these wrappers? Even if they are good for consistency, they can be well inlined.
thanks,
Takashi