GG Hou
e29493c71d
disp: msm: avoid using #ifdef for configurations
...
Use #if IS_ENABLED() instead of #ifdef for configurations as vendor module
guidelines.
Use #if IS_ENABLED(CONFIG_XXX) instead of #ifdef CONFIG_XXX to ensure that
the code inside the #if block continues to compile if the config changes
to a tristate config in the future.
The differences are as follows:
1.#if IS_ENABLED(CONFIG_XXX) evaluates to true when CONFIG_XXX is set to
module (=m) or built-in (=y).
2.#ifdef CONFIG_XXX evaluates to true when CONFIG_XXX is set to
built-in(=y) , but doesn't when CONFIG_XXX is set to module(=m).
Use this only when you're certain you want to do the same thing
when the config is set to module or is disabled.
Change-Id: Ia806b9b01ad8414d0e4de027a382cb68e7fb4a6a
Signed-off-by: GG Hou <quic_renjhou@quicinc.com >
2022-01-17 10:10:04 +08:00
..
2019-04-14 22:20:59 -07:00
2022-01-05 17:28:41 -08:00
2021-10-20 11:16:56 -07:00
2022-01-17 10:10:04 +08:00
2022-01-05 17:16:12 -08:00
2022-01-17 10:10:04 +08:00
2021-05-09 11:41:54 -07:00
2022-01-17 10:10:04 +08:00
2021-12-08 12:37:35 -08:00
2022-01-17 10:10:04 +08:00
2022-01-05 17:16:12 -08:00
2021-08-19 11:48:52 -07:00
2020-04-10 16:23:38 -07:00
2021-12-06 11:03:22 -08:00
2021-10-26 11:34:59 -07:00
2022-01-17 10:10:04 +08:00
2021-12-06 11:03:22 -08:00
2022-01-17 10:10:04 +08:00
2021-12-06 11:03:22 -08:00
2021-08-31 14:18:43 -07:00
2019-04-14 22:20:59 -07:00
2021-05-09 11:41:54 -07:00
2021-05-09 11:41:54 -07:00
2020-05-06 14:16:31 -04:00
2022-01-14 19:03:45 -08:00
2022-01-11 14:38:05 -08:00
2022-01-10 19:12:59 -08:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-05-12 22:28:53 -07:00
2021-05-12 22:28:53 -07:00
2021-05-12 22:28:53 -07:00
2021-03-31 16:07:40 -07:00
2019-04-14 22:20:59 -07:00
2019-04-14 22:20:59 -07:00
2022-01-11 14:38:05 -08:00
2021-12-01 15:11:16 -08:00
2021-12-01 15:11:15 -08:00
2021-12-01 15:11:15 -08:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-12-06 11:05:29 -08:00
2020-01-22 12:33:24 -08:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-12-07 15:11:43 +08:00
2021-10-26 11:34:59 -07:00
2021-12-06 11:03:22 -08:00
2021-12-06 11:03:22 -08:00
2021-12-08 12:37:35 -08:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2022-01-10 18:41:50 -08:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-10-25 22:07:45 -07:00
2020-02-16 01:03:58 -08:00
2021-12-06 17:32:08 -08:00
2020-06-09 18:41:48 -07:00
2021-12-06 17:32:08 -08:00
2020-02-06 14:21:53 -05:00
2022-01-07 16:53:44 -08:00
2022-01-07 16:53:44 -08:00
2021-11-17 17:12:31 -05:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-03-18 14:37:32 -07:00
2021-03-31 15:02:54 -07:00
2021-10-26 11:34:59 -07:00
2022-01-05 17:14:35 -08:00
2022-01-05 17:14:35 -08:00
2021-10-26 11:34:59 -07:00
2021-10-26 11:34:59 -07:00
2021-11-17 14:57:02 -08:00
2021-11-17 14:57:02 -08:00
2020-01-21 16:22:24 -08:00
2019-04-14 22:20:59 -07:00
2019-04-14 22:20:59 -07:00
2021-12-01 15:11:16 -08:00
2022-01-17 10:10:04 +08:00
2021-12-08 12:37:35 -08:00
2022-01-17 10:10:04 +08:00
2021-11-19 11:13:29 -08:00
2020-02-06 14:21:53 -05:00
2021-12-06 17:32:08 -08:00
2022-01-17 10:10:04 +08:00
2021-12-01 15:11:16 -08:00
2021-03-18 14:55:38 -04:00
2022-01-17 10:10:04 +08:00
2022-01-17 10:10:04 +08:00
2021-11-30 14:42:51 +08:00
2021-05-31 16:55:38 -07:00
2021-05-31 16:55:38 -07:00
2020-10-28 00:52:12 -04:00
2021-10-12 18:07:57 -07:00
2021-07-16 20:38:10 -04:00
2021-08-12 22:58:30 -04:00
2022-01-05 17:16:12 -08:00
2021-05-20 21:34:27 -07:00