staging: greybus: use preferred kernel type u16
authorChaehyun Lim <chaehyun.lim@gmail.com>
Tue, 20 Sep 2016 00:47:30 +0000 (09:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:24:46 +0000 (13:24 +0200)
As suggested by checkpatch.pl:

CHECK: Prefer kernel type 'u16' over 'uint16_t'

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/audio_codec.c
drivers/staging/greybus/audio_codec.h
drivers/staging/greybus/audio_gb.c

index c9e198957f074abe840b7497f821ea4bb6e78f29..5ce2542a2fa0d6c2b99689692d76e6aa61296a53 100644 (file)
@@ -46,7 +46,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec,
                                    struct gbaudio_module_info *module, int id)
 {
        int module_state, ret = 0;
-       uint16_t data_cport, i2s_port, cportid;
+       u16 data_cport, i2s_port, cportid;
        u8 sig_bits, channels;
        uint32_t format, rate;
        struct gbaudio_data_connection *data;
@@ -131,7 +131,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec,
 static int gbaudio_module_disable_tx(struct gbaudio_module_info *module, int id)
 {
        int ret;
-       uint16_t data_cport, cportid, i2s_port;
+       u16 data_cport, cportid, i2s_port;
        int module_state;
        struct gbaudio_data_connection *data;
 
@@ -181,7 +181,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec,
                                    struct gbaudio_module_info *module, int id)
 {
        int module_state, ret = 0;
-       uint16_t data_cport, i2s_port, cportid;
+       u16 data_cport, i2s_port, cportid;
        u8 sig_bits, channels;
        uint32_t format, rate;
        struct gbaudio_data_connection *data;
@@ -266,7 +266,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec,
 static int gbaudio_module_disable_rx(struct gbaudio_module_info *module, int id)
 {
        int ret;
-       uint16_t data_cport, cportid, i2s_port;
+       u16 data_cport, cportid, i2s_port;
        int module_state;
        struct gbaudio_data_connection *data;
 
@@ -855,7 +855,7 @@ EXPORT_SYMBOL(gbaudio_register_module);
 
 static void gbaudio_codec_clean_data_tx(struct gbaudio_data_connection *data)
 {
-       uint16_t i2s_port, cportid;
+       u16 i2s_port, cportid;
        int ret;
 
        if (list_is_singular(&gbcodec->module_list)) {
@@ -877,7 +877,7 @@ static void gbaudio_codec_clean_data_tx(struct gbaudio_data_connection *data)
 
 static void gbaudio_codec_clean_data_rx(struct gbaudio_data_connection *data)
 {
-       uint16_t i2s_port, cportid;
+       u16 i2s_port, cportid;
        int ret;
 
        if (list_is_singular(&gbcodec->module_list)) {
index fabaccc86834d906e352a795f9278ef148a56fa1..ca027bd99ad70e36b0908004cfc20c3a875bd72d 100644 (file)
@@ -231,25 +231,25 @@ extern int gb_audio_gb_enable_widget(struct gb_connection *connection,
 extern int gb_audio_gb_disable_widget(struct gb_connection *connection,
                                      u8 widget_id);
 extern int gb_audio_gb_get_pcm(struct gb_connection *connection,
-                              uint16_t data_cport, uint32_t *format,
+                              u16 data_cport, uint32_t *format,
                               uint32_t *rate, u8 *channels,
                               u8 *sig_bits);
 extern int gb_audio_gb_set_pcm(struct gb_connection *connection,
-                              uint16_t data_cport, uint32_t format,
+                              u16 data_cport, uint32_t format,
                               uint32_t rate, u8 channels,
                               u8 sig_bits);
 extern int gb_audio_gb_set_tx_data_size(struct gb_connection *connection,
-                                       uint16_t data_cport, uint16_t size);
+                                       u16 data_cport, u16 size);
 extern int gb_audio_gb_activate_tx(struct gb_connection *connection,
-                                  uint16_t data_cport);
+                                  u16 data_cport);
 extern int gb_audio_gb_deactivate_tx(struct gb_connection *connection,
-                                    uint16_t data_cport);
+                                    u16 data_cport);
 extern int gb_audio_gb_set_rx_data_size(struct gb_connection *connection,
-                                       uint16_t data_cport, uint16_t size);
+                                       u16 data_cport, u16 size);
 extern int gb_audio_gb_activate_rx(struct gb_connection *connection,
-                                  uint16_t data_cport);
+                                  u16 data_cport);
 extern int gb_audio_gb_deactivate_rx(struct gb_connection *connection,
-                                    uint16_t data_cport);
+                                    u16 data_cport);
 extern int gb_audio_apbridgea_set_config(struct gb_connection *connection,
                                         __u16 i2s_port, __u32 format,
                                         __u32 rate, __u32 mclk_freq);
index c386cd83ca9b923fecd626a71eba1bd33ecb9092..42f287dd7b84c384004e8bee95bfeeb8cf0b38eb 100644 (file)
@@ -17,7 +17,7 @@ int gb_audio_gb_get_topology(struct gb_connection *connection,
 {
        struct gb_audio_get_topology_size_response size_resp;
        struct gb_audio_topology *topo;
-       uint16_t size;
+       u16 size;
        int ret;
 
        ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_TOPOLOGY_SIZE,
@@ -107,7 +107,7 @@ int gb_audio_gb_disable_widget(struct gb_connection *connection,
 }
 EXPORT_SYMBOL_GPL(gb_audio_gb_disable_widget);
 
-int gb_audio_gb_get_pcm(struct gb_connection *connection, uint16_t data_cport,
+int gb_audio_gb_get_pcm(struct gb_connection *connection, u16 data_cport,
                        uint32_t *format, uint32_t *rate, u8 *channels,
                        u8 *sig_bits)
 {
@@ -131,7 +131,7 @@ int gb_audio_gb_get_pcm(struct gb_connection *connection, uint16_t data_cport,
 }
 EXPORT_SYMBOL_GPL(gb_audio_gb_get_pcm);
 
-int gb_audio_gb_set_pcm(struct gb_connection *connection, uint16_t data_cport,
+int gb_audio_gb_set_pcm(struct gb_connection *connection, u16 data_cport,
                        uint32_t format, uint32_t rate, u8 channels,
                        u8 sig_bits)
 {
@@ -149,7 +149,7 @@ int gb_audio_gb_set_pcm(struct gb_connection *connection, uint16_t data_cport,
 EXPORT_SYMBOL_GPL(gb_audio_gb_set_pcm);
 
 int gb_audio_gb_set_tx_data_size(struct gb_connection *connection,
-                                uint16_t data_cport, uint16_t size)
+                                u16 data_cport, u16 size)
 {
        struct gb_audio_set_tx_data_size_request req;
 
@@ -162,7 +162,7 @@ int gb_audio_gb_set_tx_data_size(struct gb_connection *connection,
 EXPORT_SYMBOL_GPL(gb_audio_gb_set_tx_data_size);
 
 int gb_audio_gb_activate_tx(struct gb_connection *connection,
-                           uint16_t data_cport)
+                           u16 data_cport)
 {
        struct gb_audio_activate_tx_request req;
 
@@ -174,7 +174,7 @@ int gb_audio_gb_activate_tx(struct gb_connection *connection,
 EXPORT_SYMBOL_GPL(gb_audio_gb_activate_tx);
 
 int gb_audio_gb_deactivate_tx(struct gb_connection *connection,
-                             uint16_t data_cport)
+                             u16 data_cport)
 {
        struct gb_audio_deactivate_tx_request req;
 
@@ -186,7 +186,7 @@ int gb_audio_gb_deactivate_tx(struct gb_connection *connection,
 EXPORT_SYMBOL_GPL(gb_audio_gb_deactivate_tx);
 
 int gb_audio_gb_set_rx_data_size(struct gb_connection *connection,
-                                uint16_t data_cport, uint16_t size)
+                                u16 data_cport, u16 size)
 {
        struct gb_audio_set_rx_data_size_request req;
 
@@ -199,7 +199,7 @@ int gb_audio_gb_set_rx_data_size(struct gb_connection *connection,
 EXPORT_SYMBOL_GPL(gb_audio_gb_set_rx_data_size);
 
 int gb_audio_gb_activate_rx(struct gb_connection *connection,
-                           uint16_t data_cport)
+                           u16 data_cport)
 {
        struct gb_audio_activate_rx_request req;
 
@@ -211,7 +211,7 @@ int gb_audio_gb_activate_rx(struct gb_connection *connection,
 EXPORT_SYMBOL_GPL(gb_audio_gb_activate_rx);
 
 int gb_audio_gb_deactivate_rx(struct gb_connection *connection,
-                             uint16_t data_cport)
+                             u16 data_cport)
 {
        struct gb_audio_deactivate_rx_request req;