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?