Re: [PATCH 1/4] regmap: Reorganise internal read/write functions.

From: Mark Brown
Date: Thu May 31 2012 - 12:41:45 EST


On Thu, May 31, 2012 at 04:11:12PM +0200, Krystian Garbaciak wrote:

> +static int _regmap_raw_write(struct regmap *map, unsigned int reg,
> + const void *val, size_t val_len)
> +{
> + void *_val = (void *)val;

This is scary... why are we casting away const here?

Attachment: signature.asc
Description: Digital signature