Arnd Bergmann
81b845f9ee
i2c: gxp: fix build failure without CONFIG_I2C_SLAVE
...
[ Upstream commit 5d388143fa ]
The gxp_i2c_slave_irq_handler() is hidden in an #ifdef, but the
caller uses an IS_ENABLED() check:
drivers/i2c/busses/i2c-gxp.c: In function 'gxp_i2c_irq_handler':
drivers/i2c/busses/i2c-gxp.c:467:29: error: implicit declaration of function 'gxp_i2c_slave_irq_handler'; did you mean 'gxp_i2c_irq_handler'? [-Werror=implicit-function-declaration]
It has to consistently use one method or the other to avoid warnings,
so move to IS_ENABLED() here for readability and build coverage, and
move the #ifdef in linux/i2c.h to allow building it as dead code.
Fixes: 4a55ed6f89 ("i2c: Add GXP SoC I2C Controller")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Reviewed-by: Nick Hawkins <nick.hawkins@hpe.com >
Signed-off-by: Wolfram Sang <wsa@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-05-17 14:01:46 +02:00
..
2023-02-08 21:53:24 +01:00
2023-02-10 10:16:42 +01:00
2023-02-24 17:18:54 -08:00
2023-02-27 10:04:49 -08:00
2023-02-22 11:05:56 -08:00
2023-02-16 13:42:22 +01:00
2023-03-14 14:00:55 -04:00
2023-05-11 23:16:55 +09:00
2023-02-26 18:31:37 +00:00
2023-02-25 15:16:23 -08:00
2023-02-24 15:11:03 -08:00
2023-05-11 23:17:33 +09:00
2023-05-01 08:32:25 +09:00
2023-03-01 09:06:51 -08:00
2023-05-11 23:17:22 +09:00
2023-02-25 11:30:21 -08:00
2023-02-24 17:12:23 -08:00
2023-02-25 15:01:32 -08:00
2023-02-14 08:19:38 -08:00
2023-02-23 17:09:35 -08:00
2023-02-27 10:04:49 -08:00
2023-02-24 17:29:52 -08:00
2023-05-11 23:17:24 +09:00
2023-05-11 23:17:33 +09:00
2023-02-24 12:58:55 -08:00
2023-02-24 12:07:00 -08:00
2023-03-19 10:48:35 +00:00
2023-02-24 12:58:55 -08:00
2023-02-09 23:01:49 +01:00
2023-02-15 19:38:50 +01:00
2023-05-11 23:16:48 +09:00
2023-03-14 09:25:50 -06:00
2023-03-15 09:25:04 -06:00
2023-02-22 08:27:49 +09:00
2023-05-11 23:17:12 +09:00
2023-02-13 13:37:37 -08:00
2023-05-11 23:17:13 +09:00
2023-03-01 10:01:22 -08:00
2023-03-09 15:40:49 -08:00
2023-03-05 10:49:37 -08:00
2023-03-05 10:49:37 -08:00
2023-02-24 12:17:14 -08:00
2023-03-21 11:53:16 +01:00
2023-03-21 11:53:16 +01:00
2023-02-09 20:19:18 +01:00
2023-03-31 10:06:16 +02:00
2023-03-25 12:57:34 -07:00
2023-02-13 18:35:15 +08:00
2023-02-10 17:33:34 -08:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-15 12:35:20 +01:00
2023-02-24 17:18:54 -08:00
2023-03-13 23:28:43 +01:00
2023-02-13 11:05:12 +00:00
2023-02-25 12:53:42 -08:00
2023-03-13 10:14:05 +01:00
2023-05-11 23:17:13 +09:00
2023-03-19 10:02:04 -07:00
2023-02-24 12:58:55 -08:00
2023-02-23 17:09:35 -08:00
2023-02-20 12:33:41 -08:00
2023-04-03 11:52:04 -04:00
2023-02-08 13:37:54 +01:00
2023-02-23 11:51:56 +01:00
2023-02-13 14:16:35 +01:00
2023-03-07 01:50:53 -05:00
2023-02-24 12:47:33 -08:00
2023-02-13 15:54:27 -08:00
2023-02-23 17:09:35 -08:00
2023-02-16 11:34:19 -08:00
2023-02-24 12:58:55 -08:00
2023-05-17 14:01:46 +02:00
2023-02-16 09:33:25 +01:00
2023-02-22 12:36:25 -08:00
2023-03-07 22:19:05 +02:00
2023-02-22 09:57:23 -07:00
2023-03-20 20:01:25 -06:00
2023-02-22 13:50:13 -08:00
2023-02-24 14:34:12 -08:00
2023-02-24 14:34:12 -08:00
2023-03-12 08:55:55 -07:00
2023-02-18 14:34:09 -05:00
2023-02-13 10:11:20 +02:00
2023-04-18 14:22:13 -07:00
2023-02-21 08:49:16 +09:00
2023-03-27 10:13:28 -04:00
2023-03-27 10:13:28 -04:00
2023-02-13 17:01:05 -08:00
2023-02-09 16:51:30 -08:00
2023-02-13 11:12:31 +00:00
2023-02-23 17:09:35 -08:00
2023-02-10 17:33:29 -08:00
2023-02-20 12:46:18 -08:00
2023-04-05 18:06:22 -07:00
2023-02-23 17:09:35 -08:00
2023-02-23 14:05:08 -08:00
2023-02-23 14:00:10 -08:00
2023-02-24 19:20:07 -08:00
2023-03-05 11:19:16 -08:00
2023-02-22 14:21:40 -08:00
2023-04-13 11:15:10 -07:00
2023-02-22 21:25:23 -08:00
2023-02-20 17:25:43 -06:00
2023-02-22 14:47:20 -08:00
2023-02-14 14:22:33 -05:00
2023-02-20 09:20:21 -05:00
2023-02-21 14:45:22 -08:00
2023-03-22 09:19:56 +01:00
2023-03-15 14:58:52 +01:00
2023-02-11 12:37:51 +01:00
2023-03-19 10:48:35 +00:00
2023-02-24 13:31:53 -08:00
2023-02-23 17:09:35 -08:00
2023-02-25 11:48:02 -08:00
2023-03-21 12:27:08 -07:00
2023-02-14 07:27:32 +09:00
2023-02-14 07:27:32 +09:00
2023-04-11 11:59:49 -07:00
2023-03-19 10:02:04 -07:00
2023-02-09 16:51:40 -08:00
2023-03-27 08:12:01 +01:00
2023-03-31 09:23:41 +01:00
2023-02-20 17:25:43 -06:00
2023-02-13 19:17:34 +01:00
2023-02-21 18:24:12 -08:00
2023-05-11 23:16:48 +09:00
2023-02-22 10:55:22 +00:00
2023-02-10 17:32:37 -08:00
2023-02-17 00:08:44 +00:00
2023-02-27 17:00:14 -08:00
2023-04-12 20:47:58 -07:00
2023-02-20 17:41:08 -08:00
2023-03-27 08:12:01 +01:00
2023-02-27 10:49:43 +01:00
2023-02-09 16:51:42 -08:00
2023-02-09 15:56:51 -08:00
2023-04-17 12:21:50 +02:00
2023-02-16 20:43:52 -08:00
2023-03-19 10:56:03 +00:00
2023-02-09 22:30:24 -08:00
2023-02-16 18:10:18 +01:00
2023-03-18 11:44:57 +01:00
2023-03-22 15:20:38 +01:00
2023-05-11 23:16:49 +09:00
2023-02-13 10:11:20 +02:00
2023-02-12 10:23:39 -05:00
2023-03-14 17:07:54 -07:00
2023-02-08 15:26:58 -08:00
2023-02-08 15:26:58 -08:00
2023-02-22 17:12:44 -08:00
2023-02-23 17:55:40 -08:00
2023-02-20 19:26:58 -05:00
2023-02-09 11:43:39 -07:00
2023-02-15 06:46:22 -05:00
2023-02-20 19:26:58 -05:00
2023-02-09 16:51:42 -08:00
2023-02-20 19:26:59 -05:00
2023-05-11 23:17:24 +09:00