Skip to content

Commit 875403a

Browse files
andy-shevbroonie
authored andcommitted
regmap: mmio: Remove unused 64-bit support code
regmap API does not support 64-bit data size, so there is no point to have it in regmap MMIO. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230622183613.58762-4-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 039fd2e commit 875403a

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

drivers/base/regmap/regmap-mmio.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,6 @@ static int regmap_mmio_noinc_write(void *context, unsigned int reg,
202202
writel(swab32(valp[i]), ctx->regs + reg);
203203
goto out_clk;
204204
}
205-
#ifdef CONFIG_64BIT
206-
case 8:
207-
{
208-
const u64 *valp = (const u64 *)val;
209-
for (i = 0; i < val_count; i++)
210-
writeq(swab64(valp[i]), ctx->regs + reg);
211-
goto out_clk;
212-
}
213-
#endif
214205
default:
215206
ret = -EINVAL;
216207
goto out_clk;
@@ -227,11 +218,6 @@ static int regmap_mmio_noinc_write(void *context, unsigned int reg,
227218
case 4:
228219
writesl(ctx->regs + reg, (const u32 *)val, val_count);
229220
break;
230-
#ifdef CONFIG_64BIT
231-
case 8:
232-
writesq(ctx->regs + reg, (const u64 *)val, val_count);
233-
break;
234-
#endif
235221
default:
236222
ret = -EINVAL;
237223
break;
@@ -363,11 +349,6 @@ static int regmap_mmio_noinc_read(void *context, unsigned int reg,
363349
case 4:
364350
readsl(ctx->regs + reg, (u32 *)val, val_count);
365351
break;
366-
#ifdef CONFIG_64BIT
367-
case 8:
368-
readsq(ctx->regs + reg, (u64 *)val, val_count);
369-
break;
370-
#endif
371352
default:
372353
ret = -EINVAL;
373354
goto out_clk;
@@ -387,11 +368,6 @@ static int regmap_mmio_noinc_read(void *context, unsigned int reg,
387368
case 4:
388369
swab32_array(val, val_count);
389370
break;
390-
#ifdef CONFIG_64BIT
391-
case 8:
392-
swab64_array(val, val_count);
393-
break;
394-
#endif
395371
default:
396372
ret = -EINVAL;
397373
break;

0 commit comments

Comments
 (0)