]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx-multi-scaler: Remove volatile
authorSuresh Gupta <suresh.gupta@xilinx.com>
Fri, 12 Oct 2018 10:10:22 +0000 (15:40 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 15 Oct 2018 07:38:17 +0000 (09:38 +0200)
commit194a9a06e8d3bac2dc43ff54d5cece3ba6a2e15f
treee4ccf455612b93aaf657e96cac7da1eece5a35f4
parentb4c6881e33ab6c121b09a1df1b6ec8525a335f91
v4l: xilinx-multi-scaler: Remove volatile

As per Documentation/process/volatile-considered-harmful.rst,
using accessor functions do not require volatile as accessors
are written to prevent unwanted optimization.

And we are using ioread32 and iowrite32, so volatile is not require.

This patch removes the volatile from code and remove
the below warning also

warning: passing argument 1 of 'ioread32' discards 'const volatile'
qualifier from pointer target type [-Wdiscarded-qualifiers]
     return ioread32(addr);
                     ^~~~

Signed-off-by: Suresh Gupta <suresh.gupta@xilinx.com>
Reviewed-by: Saurabh Sengar <saurabh.singh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/media/platform/xilinx/xilinx-multi-scaler.c