forked from Minki/linux
Input: wm9712 - fix dev_dbg newlines
dev_dbg should end with a new line. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
540792753c
commit
d73a17e6c8
@ -162,14 +162,14 @@ static void wm9712_phy_init(struct wm97xx *wm)
|
||||
if (rpu) {
|
||||
dig2 &= 0xffc0;
|
||||
dig2 |= WM9712_RPU(rpu);
|
||||
dev_dbg(wm->dev, "setting pen detect pull-up to %d Ohms",
|
||||
dev_dbg(wm->dev, "setting pen detect pull-up to %d Ohms\n",
|
||||
64000 / rpu);
|
||||
}
|
||||
|
||||
/* WM9712 five wire */
|
||||
if (five_wire) {
|
||||
dig2 |= WM9712_45W;
|
||||
dev_dbg(wm->dev, "setting 5-wire touchscreen mode.");
|
||||
dev_dbg(wm->dev, "setting 5-wire touchscreen mode.\n");
|
||||
|
||||
if (pil) {
|
||||
dev_warn(wm->dev, "pressure measurement is not "
|
||||
@ -182,21 +182,21 @@ static void wm9712_phy_init(struct wm97xx *wm)
|
||||
if (pil == 2) {
|
||||
dig2 |= WM9712_PIL;
|
||||
dev_dbg(wm->dev,
|
||||
"setting pressure measurement current to 400uA.");
|
||||
"setting pressure measurement current to 400uA.\n");
|
||||
} else if (pil)
|
||||
dev_dbg(wm->dev,
|
||||
"setting pressure measurement current to 200uA.");
|
||||
"setting pressure measurement current to 200uA.\n");
|
||||
if (!pil)
|
||||
pressure = 0;
|
||||
|
||||
/* polling mode sample settling delay */
|
||||
if (delay < 0 || delay > 15) {
|
||||
dev_dbg(wm->dev, "supplied delay out of range.");
|
||||
dev_dbg(wm->dev, "supplied delay out of range.\n");
|
||||
delay = 4;
|
||||
}
|
||||
dig1 &= 0xff0f;
|
||||
dig1 |= WM97XX_DELAY(delay);
|
||||
dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.",
|
||||
dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.\n",
|
||||
delay_table[delay]);
|
||||
|
||||
/* mask */
|
||||
@ -285,7 +285,7 @@ static int wm9712_poll_sample(struct wm97xx *wm, int adcsel, int *sample)
|
||||
if (is_pden(wm))
|
||||
wm->pen_probably_down = 0;
|
||||
else
|
||||
dev_dbg(wm->dev, "adc sample timeout");
|
||||
dev_dbg(wm->dev, "adc sample timeout\n");
|
||||
return RC_PENUP;
|
||||
}
|
||||
|
||||
@ -295,7 +295,7 @@ static int wm9712_poll_sample(struct wm97xx *wm, int adcsel, int *sample)
|
||||
|
||||
/* check we have correct sample */
|
||||
if ((*sample ^ adcsel) & WM97XX_ADCSEL_MASK) {
|
||||
dev_dbg(wm->dev, "adc wrong sample, wanted %x got %x",
|
||||
dev_dbg(wm->dev, "adc wrong sample, wanted %x got %x\n",
|
||||
adcsel & WM97XX_ADCSEL_MASK,
|
||||
*sample & WM97XX_ADCSEL_MASK);
|
||||
return RC_AGAIN;
|
||||
@ -349,7 +349,7 @@ static int wm9712_poll_coord(struct wm97xx *wm, struct wm97xx_data *data)
|
||||
if (is_pden(wm))
|
||||
wm->pen_probably_down = 0;
|
||||
else
|
||||
dev_dbg(wm->dev, "adc sample timeout");
|
||||
dev_dbg(wm->dev, "adc sample timeout\n");
|
||||
return RC_PENUP;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user