Lines Matching defs:reg
281 static bool wm8350_readable(struct device *dev, unsigned int reg)
283 return wm8350_reg_io_map[reg].readable;
286 static bool wm8350_writeable(struct device *dev, unsigned int reg)
291 if ((reg >= WM8350_GPIO_FUNCTION_SELECT_1 &&
292 reg <= WM8350_GPIO_FUNCTION_SELECT_4) ||
293 (reg >= WM8350_BATTERY_CHARGER_CONTROL_1 &&
294 reg <= WM8350_BATTERY_CHARGER_CONTROL_3))
298 return wm8350_reg_io_map[reg].writable;
301 static bool wm8350_volatile(struct device *dev, unsigned int reg)
303 return wm8350_reg_io_map[reg].vol;
306 static bool wm8350_precious(struct device *dev, unsigned int reg)
308 switch (reg) {