@@ -177,7 +177,7 @@ static bool dmae_is_busy(struct sh_dmae_chan *sh_chan)
177
177
static unsigned int calc_xmit_shift (struct sh_dmae_chan * sh_chan , u32 chcr )
178
178
{
179
179
struct sh_dmae_device * shdev = to_sh_dev (sh_chan );
180
- struct sh_dmae_pdata * pdata = shdev -> pdata ;
180
+ const struct sh_dmae_pdata * pdata = shdev -> pdata ;
181
181
int cnt = ((chcr & pdata -> ts_low_mask ) >> pdata -> ts_low_shift ) |
182
182
((chcr & pdata -> ts_high_mask ) >> pdata -> ts_high_shift );
183
183
@@ -190,7 +190,7 @@ static unsigned int calc_xmit_shift(struct sh_dmae_chan *sh_chan, u32 chcr)
190
190
static u32 log2size_to_chcr (struct sh_dmae_chan * sh_chan , int l2size )
191
191
{
192
192
struct sh_dmae_device * shdev = to_sh_dev (sh_chan );
193
- struct sh_dmae_pdata * pdata = shdev -> pdata ;
193
+ const struct sh_dmae_pdata * pdata = shdev -> pdata ;
194
194
int i ;
195
195
196
196
for (i = 0 ; i < pdata -> ts_shift_num ; i ++ )
@@ -250,7 +250,7 @@ static int dmae_set_chcr(struct sh_dmae_chan *sh_chan, u32 val)
250
250
static int dmae_set_dmars (struct sh_dmae_chan * sh_chan , u16 val )
251
251
{
252
252
struct sh_dmae_device * shdev = to_sh_dev (sh_chan );
253
- struct sh_dmae_pdata * pdata = shdev -> pdata ;
253
+ const struct sh_dmae_pdata * pdata = shdev -> pdata ;
254
254
const struct sh_dmae_channel * chan_pdata = & pdata -> channel [sh_chan -> shdma_chan .id ];
255
255
void __iomem * addr = shdev -> dmars ;
256
256
unsigned int shift = chan_pdata -> dmars_bit ;
@@ -319,7 +319,7 @@ static const struct sh_dmae_slave_config *dmae_find_slave(
319
319
struct sh_dmae_chan * sh_chan , int match )
320
320
{
321
321
struct sh_dmae_device * shdev = to_sh_dev (sh_chan );
322
- struct sh_dmae_pdata * pdata = shdev -> pdata ;
322
+ const struct sh_dmae_pdata * pdata = shdev -> pdata ;
323
323
const struct sh_dmae_slave_config * cfg ;
324
324
int i ;
325
325
@@ -665,7 +665,7 @@ static const struct shdma_ops sh_dmae_shdma_ops = {
665
665
666
666
static int sh_dmae_probe (struct platform_device * pdev )
667
667
{
668
- struct sh_dmae_pdata * pdata = pdev -> dev .platform_data ;
668
+ const struct sh_dmae_pdata * pdata = pdev -> dev .platform_data ;
669
669
unsigned long irqflags = IRQF_DISABLED ,
670
670
chan_flag [SH_DMAE_MAX_CHANNELS ] = {};
671
671
int errirq , chan_irq [SH_DMAE_MAX_CHANNELS ];
0 commit comments