Thread (13 messages) 13 messages, 4 authors, 2016-11-23

Re: [PATCH v3 2/5] i2c: designware: Master mode as separated driver

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2016-11-18 12:30:43
Also in: linux-i2c, lkml

On Fri, 2016-11-18 at 11:19 +0000, Luis Oliveira wrote:
 - The functions related to I2C master mode of operation were
transformed in a single driver.
 - The name of the i2c-designware-core.c had to be changed to i2c-
designware-src.c to for the cmake to be able to correctly compile both
modules into one
 - Common definitions were moved to i2c-designware-core.h
 drivers/i2c/busses/i2c-designware-src.c            | 252
+++++++++++++++
Perhaps i2c-designware-common.c ?
quoted hunk ↗ jump to hunk
@@ -21,8 +21,6 @@
  * ------------------------------------------------------------------
----------
  *
  */
-
-
No need to do that in this patch.
quoted hunk ↗ jump to hunk
 #define DW_IC_CON_MASTER		0x1
 #define DW_IC_CON_SPEED_STD		0x2
 #define DW_IC_CON_SPEED_FAST		0x4
@@ -32,6 +30,123 @@
 #define DW_IC_CON_RESTART_EN		0x20
 #define DW_IC_CON_SLAVE_DISABLE		0x40
 
+/*
+ * Registers offset
+ */
+#define DW_IC_CON		0x0
Okay, can we split this to move definitions and the rest?

-- 
Andy Shevchenko [off-list ref]
Intel Finland Oy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help