]> Git Repo - linux.git/commit
i2c: designware-baytrail: fix sparse warnings
authorAndy Shevchenko <[email protected]>
Tue, 10 Feb 2015 17:06:08 +0000 (19:06 +0200)
committerWolfram Sang <[email protected]>
Sat, 7 Mar 2015 00:07:46 +0000 (01:07 +0100)
commitc8e043e6f717b0256b1cfc55d03c232e8a5c8cbd
tree110a175e0fe68502c8935f58a8686f8675fa580f
parent259aada436e13ec75a8b0f252a78e6577879008e
i2c: designware-baytrail: fix sparse warnings

There is no need to export functions that are used as the callbacks in the
struct dw_i2c_dev. Otherwise we get the following warnings:

drivers/i2c/busses/i2c-designware-baytrail.c:63:5: warning: symbol 'baytrail_i2c_acquire' was not declared. Should it be static?
drivers/i2c/busses/i2c-designware-baytrail.c:114:6: warning: symbol 'baytrail_i2c_release' was not declared. Should it be static?

While here, do few indentation fixes, remove i2c_dw_eval_lock_support() from
functions exported to the modules and redundant assignment of local sem
variable.

Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: David E. Box <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-designware-baytrail.c
This page took 0.045584 seconds and 4 git commands to generate.