i2c: Fixed i2c_dw spamming when logs are enabled

Added CONFIG_SYS_LOG_I2C_LEVEL define, so that DW I2C driver will
not print traces unless requested with CONFIG_SYS_LOG_I2C_LEVEL.
Currently it doesn't obey it, so DW I2C spams DBG traces when
logging is enabled.

Change-Id: I87dc1d922ba61d39f26945627602864c75d9bf33
Signed-off-by: Jani Pajarinen <jani.pajarinen@intel.com>
This commit is contained in:
Jani Pajarinen 2016-07-11 18:02:32 +01:00 committed by Inaky Perez-Gonzalez
parent 4172b3afab
commit 485dde19da

View File

@ -43,6 +43,7 @@
#include "i2c_dw.h"
#include "i2c_dw_registers.h"
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_I2C_LEVEL
#include <misc/sys_log.h>
static inline void _i2c_dw_data_ask(struct device *dev)