示例#1
0
/* Must be called with ts->lock held */
static void __ads7846_enable(struct ads7846 *ts)
{
#ifndef CONFIG_PLAT_S5P4418_NANOPI2
	regulator_enable(ts->reg);
#endif	
	ads7846_restart(ts);
}
示例#2
0
文件: ads7846.c 项目: 168519/linux
/* Must be called with ts->lock held */
static void __ads7846_enable(struct ads7846 *ts)
{
	int error;

	error = regulator_enable(ts->reg);
	if (error != 0)
		dev_err(&ts->spi->dev, "Failed to enable supply: %d\n", error);

	ads7846_restart(ts);
}
/* Must be called with ts->lock held */
static void __ads7846_enable(struct ads7846 *ts)
{
	regulator_enable(ts->reg);
	ads7846_restart(ts);
}