Extcon: Minor change in the declaration of cable_names
PATCH 1/1 Extcon: Minor change in the declaration of cable_names
From: anish kumar <[email protected]>
Instead of "const char **supported_cable" it is better to have it as "const char *const *supported_cable".
Signed-off-by anish kumar <[email protected]>
--- include/linux/extcon.h | 2 +- include/linux/extcon/extcon-adc-jack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/extcon.h +1 -1
@@ -111,7 +111,7 @@ struct extcon_cable;struct extcon_dev {/* --- Optional user initializing data --- */ const char *name; -const char **supported_cable; +const char *const *supported_cable;const u32 *mutually_exclusive;/* --- Optional callbacks to override class functions --- */
include/linux/extcon/extcon-adc-jack.h +1 -1
@@ -60,7 +60,7 @@ struct adc_jack_pdata {/* * The last entry should be NULL */ -const char **cable_names; +const char *const *cable_names;/* The last entry's state should be 0 */ struct adc_jack_cond *adc_conditions;
Signature · 1 line
1.7.1