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

staging: greybus: use preferred kernel type u8

As suggested by checkpatch.pl:

CHECK: Prefer kernel type 'u8' over 'uint8_t'
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19c5a689
...@@ -47,7 +47,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec, ...@@ -47,7 +47,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec,
{ {
int module_state, ret = 0; int module_state, ret = 0;
uint16_t data_cport, i2s_port, cportid; uint16_t data_cport, i2s_port, cportid;
uint8_t 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;
struct gbaudio_stream_params *params; struct gbaudio_stream_params *params;
...@@ -182,7 +182,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec, ...@@ -182,7 +182,7 @@ static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec,
{ {
int module_state, ret = 0; int module_state, ret = 0;
uint16_t data_cport, i2s_port, cportid; uint16_t data_cport, i2s_port, cportid;
uint8_t 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;
struct gbaudio_stream_params *params; struct gbaudio_stream_params *params;
...@@ -413,7 +413,7 @@ static int gbcodec_hw_params(struct snd_pcm_substream *substream, ...@@ -413,7 +413,7 @@ static int gbcodec_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai) struct snd_soc_dai *dai)
{ {
int ret; int ret;
uint8_t sig_bits, channels; u8 sig_bits, channels;
uint32_t format, rate; uint32_t format, rate;
struct gbaudio_module_info *module; struct gbaudio_module_info *module;
struct gbaudio_data_connection *data; struct gbaudio_data_connection *data;
......
...@@ -98,7 +98,7 @@ enum gbaudio_codec_state { ...@@ -98,7 +98,7 @@ enum gbaudio_codec_state {
struct gbaudio_stream_params { struct gbaudio_stream_params {
int state; int state;
uint8_t sig_bits, channels; u8 sig_bits, channels;
uint32_t format, rate; uint32_t format, rate;
}; };
...@@ -221,23 +221,23 @@ void gbaudio_unregister_module(struct gbaudio_module_info *module); ...@@ -221,23 +221,23 @@ void gbaudio_unregister_module(struct gbaudio_module_info *module);
extern int gb_audio_gb_get_topology(struct gb_connection *connection, extern int gb_audio_gb_get_topology(struct gb_connection *connection,
struct gb_audio_topology **topology); struct gb_audio_topology **topology);
extern int gb_audio_gb_get_control(struct gb_connection *connection, extern int gb_audio_gb_get_control(struct gb_connection *connection,
uint8_t control_id, uint8_t index, u8 control_id, u8 index,
struct gb_audio_ctl_elem_value *value); struct gb_audio_ctl_elem_value *value);
extern int gb_audio_gb_set_control(struct gb_connection *connection, extern int gb_audio_gb_set_control(struct gb_connection *connection,
uint8_t control_id, uint8_t index, u8 control_id, u8 index,
struct gb_audio_ctl_elem_value *value); struct gb_audio_ctl_elem_value *value);
extern int gb_audio_gb_enable_widget(struct gb_connection *connection, extern int gb_audio_gb_enable_widget(struct gb_connection *connection,
uint8_t widget_id); u8 widget_id);
extern int gb_audio_gb_disable_widget(struct gb_connection *connection, extern int gb_audio_gb_disable_widget(struct gb_connection *connection,
uint8_t 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, uint16_t data_cport, uint32_t *format,
uint32_t *rate, uint8_t *channels, uint32_t *rate, u8 *channels,
uint8_t *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, uint16_t data_cport, uint32_t format,
uint32_t rate, uint8_t channels, uint32_t rate, u8 channels,
uint8_t 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); uint16_t data_cport, uint16_t size);
extern int gb_audio_gb_activate_tx(struct gb_connection *connection, extern int gb_audio_gb_activate_tx(struct gb_connection *connection,
......
...@@ -47,7 +47,7 @@ int gb_audio_gb_get_topology(struct gb_connection *connection, ...@@ -47,7 +47,7 @@ int gb_audio_gb_get_topology(struct gb_connection *connection,
EXPORT_SYMBOL_GPL(gb_audio_gb_get_topology); EXPORT_SYMBOL_GPL(gb_audio_gb_get_topology);
int gb_audio_gb_get_control(struct gb_connection *connection, int gb_audio_gb_get_control(struct gb_connection *connection,
uint8_t control_id, uint8_t index, u8 control_id, u8 index,
struct gb_audio_ctl_elem_value *value) struct gb_audio_ctl_elem_value *value)
{ {
struct gb_audio_get_control_request req; struct gb_audio_get_control_request req;
...@@ -69,7 +69,7 @@ int gb_audio_gb_get_control(struct gb_connection *connection, ...@@ -69,7 +69,7 @@ int gb_audio_gb_get_control(struct gb_connection *connection,
EXPORT_SYMBOL_GPL(gb_audio_gb_get_control); EXPORT_SYMBOL_GPL(gb_audio_gb_get_control);
int gb_audio_gb_set_control(struct gb_connection *connection, int gb_audio_gb_set_control(struct gb_connection *connection,
uint8_t control_id, uint8_t index, u8 control_id, u8 index,
struct gb_audio_ctl_elem_value *value) struct gb_audio_ctl_elem_value *value)
{ {
struct gb_audio_set_control_request req; struct gb_audio_set_control_request req;
...@@ -84,7 +84,7 @@ int gb_audio_gb_set_control(struct gb_connection *connection, ...@@ -84,7 +84,7 @@ int gb_audio_gb_set_control(struct gb_connection *connection,
EXPORT_SYMBOL_GPL(gb_audio_gb_set_control); EXPORT_SYMBOL_GPL(gb_audio_gb_set_control);
int gb_audio_gb_enable_widget(struct gb_connection *connection, int gb_audio_gb_enable_widget(struct gb_connection *connection,
uint8_t widget_id) u8 widget_id)
{ {
struct gb_audio_enable_widget_request req; struct gb_audio_enable_widget_request req;
...@@ -96,7 +96,7 @@ int gb_audio_gb_enable_widget(struct gb_connection *connection, ...@@ -96,7 +96,7 @@ int gb_audio_gb_enable_widget(struct gb_connection *connection,
EXPORT_SYMBOL_GPL(gb_audio_gb_enable_widget); EXPORT_SYMBOL_GPL(gb_audio_gb_enable_widget);
int gb_audio_gb_disable_widget(struct gb_connection *connection, int gb_audio_gb_disable_widget(struct gb_connection *connection,
uint8_t widget_id) u8 widget_id)
{ {
struct gb_audio_disable_widget_request req; struct gb_audio_disable_widget_request req;
...@@ -108,8 +108,8 @@ int gb_audio_gb_disable_widget(struct gb_connection *connection, ...@@ -108,8 +108,8 @@ 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, uint16_t data_cport,
uint32_t *format, uint32_t *rate, uint8_t *channels, uint32_t *format, uint32_t *rate, u8 *channels,
uint8_t *sig_bits) u8 *sig_bits)
{ {
struct gb_audio_get_pcm_request req; struct gb_audio_get_pcm_request req;
struct gb_audio_get_pcm_response resp; struct gb_audio_get_pcm_response resp;
...@@ -132,8 +132,8 @@ int gb_audio_gb_get_pcm(struct gb_connection *connection, uint16_t data_cport, ...@@ -132,8 +132,8 @@ 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, uint16_t data_cport,
uint32_t format, uint32_t rate, uint8_t channels, uint32_t format, uint32_t rate, u8 channels,
uint8_t sig_bits) u8 sig_bits)
{ {
struct gb_audio_set_pcm_request req; struct gb_audio_set_pcm_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