iio: pressure: zpa2326: Add newlines to logging macros

Add newlines to the macro definitions and use a more common style.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Joe Perches 2017-07-05 03:25:58 -07:00 коммит произвёл Jonathan Cameron
Родитель 1d3eacbfa6
Коммит eed3089fb2
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -141,14 +141,14 @@ struct zpa2326_private {
struct regulator *vdd; struct regulator *vdd;
}; };
#define zpa2326_err(_idev, _format, _arg...) \ #define zpa2326_err(idev, fmt, ...) \
dev_err(_idev->dev.parent, _format, ##_arg) dev_err(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
#define zpa2326_warn(_idev, _format, _arg...) \ #define zpa2326_warn(idev, fmt, ...) \
dev_warn(_idev->dev.parent, _format, ##_arg) dev_warn(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
#define zpa2326_dbg(_idev, _format, _arg...) \ #define zpa2326_dbg(idev, fmt, ...) \
dev_dbg(_idev->dev.parent, _format, ##_arg) dev_dbg(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
bool zpa2326_isreg_writeable(struct device *dev, unsigned int reg) bool zpa2326_isreg_writeable(struct device *dev, unsigned int reg)
{ {