Exemple #1
0
/* Must be called with ts->lock held */
static void __ads7846_disable(struct ads7846 *ts)
{
	ads7846_stop(ts);
	regulator_disable(ts->reg);

	/*
	 * We know the chip's in low power mode since we always
	 * leave it that way after every request
	 */
}
Exemple #2
0
/* Must be called with ts->lock held */
static void __ads7846_disable(struct ads7846 *ts)
{
	ads7846_stop(ts);
#ifndef CONFIG_PLAT_S5P4418_NANOPI2	
	regulator_disable(ts->reg);
#endif
	/*
	 * We know the chip's in low power mode since we always
	 * leave it that way after every request
	 */
}