Commit 79cb2b26 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: greybus: use preferred kernel type u16

As suggested by checkpatch.pl:

CHECK: Prefer kernel type 'u16' over 'uint16_t'
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31959392
...@@ -46,7 +46,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec, ...@@ -46,7 +46,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec,
struct gbaudio_module_info *module, int id) struct gbaudio_module_info *module, int id)
{ {
int module_state, ret = 0; int module_state, ret = 0;
uint16_t data_cport, i2s_port, cportid; u16 data_cport, i2s_port, cportid;
u8 sig_bits, channels; u8 sig_bits, channels;
uint32_t format, rate; uint32_t format, rate;
struct gbaudio_data_connection *data; struct gbaudio_data_connection *data;
...@@ -131,7 +131,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec, ...@@ -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) static int gbaudio_module_disable_tx(struct gbaudio_module_info *module, int id)
{ {
int ret; int ret;
uint16_t data_cport, cportid, i2s_port; u16 data_cport, cportid, i2s_port;
int module_state; int module_state;
struct gbaudio_data_connection *data; struct gbaudio_data_connection *data;
...@@ -181,7 +181,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec, ...@@ -181,7 +181,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec,
struct gbaudio_module_info *module, int id) struct gbaudio_module_info *module, int id)
{ {
int module_state, ret = 0; int module_state, ret = 0;
uint16_t data_cport, i2s_port, cportid; u16 data_cport, i2s_port, cportid;
u8 sig_bits, channels; u8 sig_bits, channels;
uint32_t format, rate; uint32_t format, rate;
struct gbaudio_data_connection *data; struct gbaudio_data_connection *data;
...@@ -266,7 +266,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec, ...@@ -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) static int gbaudio_module_disable_rx(struct gbaudio_module_info *module, int id)
{ {
int ret; int ret;
uint16_t data_cport, cportid, i2s_port; u16 data_cport, cportid, i2s_port;
int module_state; int module_state;
struct gbaudio_data_connection *data; struct gbaudio_data_connection *data;
...@@ -855,7 +855,7 @@ EXPORT_SYMBOL(gbaudio_register_module); ...@@ -855,7 +855,7 @@ EXPORT_SYMBOL(gbaudio_register_module);
static void gbaudio_codec_clean_data_tx(struct gbaudio_data_connection *data) static void gbaudio_codec_clean_data_tx(struct gbaudio_data_connection *data)
{ {
uint16_t i2s_port, cportid; u16 i2s_port, cportid;
int ret; int ret;
if (list_is_singular(&gbcodec->module_list)) { if (list_is_singular(&gbcodec->module_list)) {
...@@ -877,7 +877,7 @@ static void gbaudio_codec_clean_data_tx(struct gbaudio_data_connection *data) ...@@ -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) static void gbaudio_codec_clean_data_rx(struct gbaudio_data_connection *data)
{ {
uint16_t i2s_port, cportid; u16 i2s_port, cportid;
int ret; int ret;
if (list_is_singular(&gbcodec->module_list)) { if (list_is_singular(&gbcodec->module_list)) {
......
...@@ -231,25 +231,25 @@ extern int gb_audio_gb_enable_widget(struct gb_connection *connection, ...@@ -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, extern int gb_audio_gb_disable_widget(struct gb_connection *connection,
u8 widget_id); u8 widget_id);
extern int gb_audio_gb_get_pcm(struct gb_connection *connection, 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, uint32_t *rate, u8 *channels,
u8 *sig_bits); u8 *sig_bits);
extern int gb_audio_gb_set_pcm(struct gb_connection *connection, 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, uint32_t rate, u8 channels,
u8 sig_bits); u8 sig_bits);
extern int gb_audio_gb_set_tx_data_size(struct gb_connection *connection, 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, 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, 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, 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, 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, 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, extern int gb_audio_apbridgea_set_config(struct gb_connection *connection,
__u16 i2s_port, __u32 format, __u16 i2s_port, __u32 format,
__u32 rate, __u32 mclk_freq); __u32 rate, __u32 mclk_freq);
......
...@@ -17,7 +17,7 @@ int gb_audio_gb_get_topology(struct gb_connection *connection, ...@@ -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_get_topology_size_response size_resp;
struct gb_audio_topology *topo; struct gb_audio_topology *topo;
uint16_t size; u16 size;
int ret; int ret;
ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_TOPOLOGY_SIZE, 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, ...@@ -107,7 +107,7 @@ int gb_audio_gb_disable_widget(struct gb_connection *connection,
} }
EXPORT_SYMBOL_GPL(gb_audio_gb_disable_widget); 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, uint32_t *format, uint32_t *rate, u8 *channels,
u8 *sig_bits) u8 *sig_bits)
{ {
...@@ -131,7 +131,7 @@ int gb_audio_gb_get_pcm(struct gb_connection *connection, uint16_t data_cport, ...@@ -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); 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, uint32_t format, uint32_t rate, u8 channels,
u8 sig_bits) u8 sig_bits)
{ {
...@@ -149,7 +149,7 @@ int gb_audio_gb_set_pcm(struct gb_connection *connection, uint16_t data_cport, ...@@ -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); EXPORT_SYMBOL_GPL(gb_audio_gb_set_pcm);
int gb_audio_gb_set_tx_data_size(struct gb_connection *connection, 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; 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, ...@@ -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); EXPORT_SYMBOL_GPL(gb_audio_gb_set_tx_data_size);
int gb_audio_gb_activate_tx(struct gb_connection *connection, int gb_audio_gb_activate_tx(struct gb_connection *connection,
uint16_t data_cport) u16 data_cport)
{ {
struct gb_audio_activate_tx_request req; struct gb_audio_activate_tx_request req;
...@@ -174,7 +174,7 @@ int gb_audio_gb_activate_tx(struct gb_connection *connection, ...@@ -174,7 +174,7 @@ int gb_audio_gb_activate_tx(struct gb_connection *connection,
EXPORT_SYMBOL_GPL(gb_audio_gb_activate_tx); EXPORT_SYMBOL_GPL(gb_audio_gb_activate_tx);
int gb_audio_gb_deactivate_tx(struct gb_connection *connection, int gb_audio_gb_deactivate_tx(struct gb_connection *connection,
uint16_t data_cport) u16 data_cport)
{ {
struct gb_audio_deactivate_tx_request req; struct gb_audio_deactivate_tx_request req;
...@@ -186,7 +186,7 @@ int gb_audio_gb_deactivate_tx(struct gb_connection *connection, ...@@ -186,7 +186,7 @@ int gb_audio_gb_deactivate_tx(struct gb_connection *connection,
EXPORT_SYMBOL_GPL(gb_audio_gb_deactivate_tx); EXPORT_SYMBOL_GPL(gb_audio_gb_deactivate_tx);
int gb_audio_gb_set_rx_data_size(struct gb_connection *connection, 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; 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, ...@@ -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); EXPORT_SYMBOL_GPL(gb_audio_gb_set_rx_data_size);
int gb_audio_gb_activate_rx(struct gb_connection *connection, int gb_audio_gb_activate_rx(struct gb_connection *connection,
uint16_t data_cport) u16 data_cport)
{ {
struct gb_audio_activate_rx_request req; struct gb_audio_activate_rx_request req;
...@@ -211,7 +211,7 @@ int gb_audio_gb_activate_rx(struct gb_connection *connection, ...@@ -211,7 +211,7 @@ int gb_audio_gb_activate_rx(struct gb_connection *connection,
EXPORT_SYMBOL_GPL(gb_audio_gb_activate_rx); EXPORT_SYMBOL_GPL(gb_audio_gb_activate_rx);
int gb_audio_gb_deactivate_rx(struct gb_connection *connection, int gb_audio_gb_deactivate_rx(struct gb_connection *connection,
uint16_t data_cport) u16 data_cport)
{ {
struct gb_audio_deactivate_rx_request req; struct gb_audio_deactivate_rx_request req;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment