staging: bcm2835-audio: fix multiple checkpatch warnings
Subsystems (3)
v4 cover staging: bcm2835-audio: fix multiple checkpatch warnings
Fix multiple code styling warnings issued by checkpatch on file bcm2835-ctl.c in bcm2835-audio driver
Changes in v4:
-Refactor commit messages
Changes in v3:
-Merge two if conditions
-Fix subject of patch replace printk(... by dev_err(...
Changes in v2:
-Replace pr_err with dev_err
Aishwarya Pant (5):
*** HERE ***
staging: bcm2835-audio: remove space after cast
staging: bcm2835-audio: move logical continuation to the same line
staging: bcm2835-audio: use kernel preferred block commenting style
staging: bcm2835-audio: remove extra blank line
staging: bcm2835-audio: replace printk(KERN_ERR...) with dev_err(...)
.../vc04_services/bcm2835-audio/bcm2835-ctl.c | 23 ++++++++++------------ 1 file changed, 10 insertions(+), 13 deletions(-)
Signature · 1 line
2.7.4
PATCH v4 1/5 staging: bcm2835-audio: move logical continuation to the same line
Remove instances of unnecessary blank space after cast in bcm2835-ctl.c
--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +3 -3
@@ -116,7 +116,7 @@ static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol,return -EINTR ;if (kcontrol->private_value ==PCM_PLAYBACK_VOLUME ) { -audio_info ("Volume change attempted.. volume = %d new_volume = %d\n" , chip->volume, (int ) ucontrol->value.integer.value[0 ]); +audio_info ("Volume change attempted.. volume = %d new_volume = %d\n" , chip->volume, (int )ucontrol->value.integer.value[0 ]);if (chip->mute ==CTRL_VOL_MUTE ) {/* changed = toggle_mute(chip, CTRL_VOL_UNMUTE); */ changed =1 ;/* should return 0 to signify no change but the mixer takes this as the opposite sign (no idea why) */
@@ -226,7 +226,7 @@ static int snd_bcm2835_spdif_default_put(struct snd_kcontrol *kcontrol,return -EINTR ;for (i =0 ; i <4 ; i++) - val |= (unsigned int ) ucontrol->value.iec958.status[i] << (i *8 ); + val |= (unsigned int )ucontrol->value.iec958.status[i] << (i *8 ); change = val != chip->spdif_status; chip->spdif_status = val;
@@ -289,7 +289,7 @@ static int snd_bcm2835_spdif_stream_put(struct snd_kcontrol *kcontrol,return -EINTR ;for (i =0 ; i <4 ; i++) - val |= (unsigned int ) ucontrol->value.iec958.status[i] << (i *8 ); + val |= (unsigned int )ucontrol->value.iec958.status[i] << (i *8 ); change = val != chip->spdif_status; chip->spdif_status = val;
Signature · 1 line
2.7.4
Re: [Outreachy kernel] [PATCH v4 1/5] staging: bcm2835-audio: move logical continuation to the same line
The subject seems quite unrelated to the patch.
julia
Quoted 48 lines · Aishwarya Pant
Remove instances of unnecessary blank space after cast in
bcm2835-ctl.cSigned-off-by Aishwarya Pant <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +3
-4@@ -116,7 +116,7 @@ static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol,return -EINTR ;if (kcontrol->private_value ==PCM_PLAYBACK_VOLUME ) { -audio_info ("Volume change attempted.. volume = %d new_volume = %d\n" , chip->volume, (int ) ucontrol->value.integer.value[0 ]); +audio_info ("Volume change attempted.. volume = %d new_volume = %d\n" , chip->volume, (int )ucontrol->value.integer.value[0 ]);if (chip->mute ==CTRL_VOL_MUTE ) {/* changed = toggle_mute(chip, CTRL_VOL_UNMUTE); */ changed =1 ;/* should return 0 to signify no change but the mixer takes this as the opposite sign (no idea why) */ @@ -226,7 +226,7 @@ static int snd_bcm2835_spdif_default_put(struct snd_kcontrol *kcontrol,return -EINTR ;for (i =0 ; i <4 ; i++) - val |= (unsigned int ) ucontrol->value.iec958.status[i] << (i *8 ); + val |= (unsigned int )ucontrol->value.iec958.status[i] << (i *8 ); change = val != chip->spdif_status; chip->spdif_status = val;@@ -289,7 +289,7 @@ static int snd_bcm2835_spdif_stream_put(struct snd_kcontrol *kcontrol,return -EINTR ;for (i =0 ; i <4 ; i++) - val |= (unsigned int ) ucontrol->value.iec958.status[i] << (i *8 ); + val |= (unsigned int )ucontrol->value.iec958.status[i] << (i *8 ); change = val != chip->spdif_status; chip->spdif_status = val; --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/845a46f44fdc14bf896d03a9edd388716329cb47.1488479861.git.aishpant%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Outreachy kernel] [PATCH v4 1/5] staging: bcm2835-audio: move logical continuation to the same line
Quoted 1 line · Julia Lawall
The subject seems quite unrelated to the patch.
Oops, I didn't notice that this was already fixed.
julia
Quoted 54 lines
julia
Quoted 48 lines · Aishwarya Pant
Remove instances of unnecessary blank space after cast in
bcm2835-ctl.cSigned-off-by Aishwarya Pant <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +3
-4@@ -116,7 +116,7 @@ static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol,return -EINTR ;if (kcontrol->private_value ==PCM_PLAYBACK_VOLUME ) { -audio_info ("Volume change attempted.. volume = %d new_volume = %d\n" , chip->volume, (int ) ucontrol->value.integer.value[0 ]); +audio_info ("Volume change attempted.. volume = %d new_volume = %d\n" , chip->volume, (int )ucontrol->value.integer.value[0 ]);if (chip->mute ==CTRL_VOL_MUTE ) {/* changed = toggle_mute(chip, CTRL_VOL_UNMUTE); */ changed =1 ;/* should return 0 to signify no change but the mixer takes this as the opposite sign (no idea why) */ @@ -226,7 +226,7 @@ static int snd_bcm2835_spdif_default_put(struct snd_kcontrol *kcontrol,return -EINTR ;for (i =0 ; i <4 ; i++) - val |= (unsigned int ) ucontrol->value.iec958.status[i] << (i *8 ); + val |= (unsigned int )ucontrol->value.iec958.status[i] << (i *8 ); change = val != chip->spdif_status; chip->spdif_status = val;@@ -289,7 +289,7 @@ static int snd_bcm2835_spdif_stream_put(struct snd_kcontrol *kcontrol,return -EINTR ;for (i =0 ; i <4 ; i++) - val |= (unsigned int ) ucontrol->value.iec958.status[i] << (i *8 ); + val |= (unsigned int )ucontrol->value.iec958.status[i] << (i *8 ); change = val != chip->spdif_status; chip->spdif_status = val; --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/845a46f44fdc14bf896d03a9edd388716329cb47.1488479861.git.aishpant%40gmail.com.
For more options, visit https://groups.google.com/d/optout.