Lines Matching refs:p_lm70
49 struct lm70 *p_lm70 = dev_get_drvdata(dev); in temp1_input_show() local
50 struct spi_device *spi = p_lm70->spi; in temp1_input_show()
55 if (mutex_lock_interruptible(&p_lm70->lock)) in temp1_input_show()
98 switch (p_lm70->chip) { in temp1_input_show()
120 mutex_unlock(&p_lm70->lock); in temp1_input_show()
169 struct lm70 *p_lm70; in lm70_probe() local
184 p_lm70 = devm_kzalloc(&spi->dev, sizeof(*p_lm70), GFP_KERNEL); in lm70_probe()
185 if (!p_lm70) in lm70_probe()
188 mutex_init(&p_lm70->lock); in lm70_probe()
189 p_lm70->chip = chip; in lm70_probe()
190 p_lm70->spi = spi; in lm70_probe()
194 p_lm70, lm70_groups); in lm70_probe()