Skip to content

Commit dbe683f

Browse files
andy-shevgregkh
authored andcommitted
serial: 8250_exar: Group CTI EEPROM offsets by device
It's not obvious from the first glance that the list of the CTI EEPROM offsets covers three different models, let's group them accordingly for better readability. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 483c5c2 commit dbe683f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/tty/serial/8250/8250_exar.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,13 @@
179179

180180
/* CTI EEPROM offsets */
181181
#define CTI_EE_OFF_XR17C15X_OSC_FREQ 0x04 /* 2 words */
182-
#define CTI_EE_OFF_XR17V25X_OSC_FREQ 0x08 /* 2 words */
183182
#define CTI_EE_OFF_XR17C15X_PART_NUM 0x0A /* 4 words */
184-
#define CTI_EE_OFF_XR17V25X_PART_NUM 0x0E /* 4 words */
185183
#define CTI_EE_OFF_XR17C15X_SERIAL_NUM 0x0E /* 1 word */
184+
185+
#define CTI_EE_OFF_XR17V25X_OSC_FREQ 0x08 /* 2 words */
186+
#define CTI_EE_OFF_XR17V25X_PART_NUM 0x0E /* 4 words */
186187
#define CTI_EE_OFF_XR17V25X_SERIAL_NUM 0x12 /* 1 word */
188+
187189
#define CTI_EE_OFF_XR17V35X_SERIAL_NUM 0x11 /* 2 word */
188190
#define CTI_EE_OFF_XR17V35X_BRD_FLAGS 0x13 /* 1 word */
189191
#define CTI_EE_OFF_XR17V35X_PORT_FLAGS 0x14 /* 1 word */

0 commit comments

Comments
 (0)