Skip to contentSkip to conversation

Clean up query: greybus/audio_manager_module.c

DISCUSSION Deepak R Varma 2 participants 4 messages Oct 22, 2020

lore
Share & tools
lore
#0 lore raw

Hello,
I am reviewing the file: drivers/staging/greybus/audio_manager_module.c and have found that there are several gb_audio_module_*_show functions that accept "struct gb_audio_manager_module_attribute * " as a function parameter. However, this parameter is not used and should not be necessary. Would you suggest cleaning up such functions.

Thank you.
Deepak.

#1 lore raw
Quoted 6 lines · Deepak R Varma

Hello,
I am reviewing the file: drivers/staging/greybus/audio_manager_module.c and have found that there are several gb_audio_module_*_show functions that accept "struct gb_audio_manager_module_attribute * " as a function parameter. However, this parameter is not used and should not be necessary. Would you suggest cleaning up such functions.

Try removing it and see why it is really needed to be there :)

good luck!

greg k-h

#2 lore raw
Quoted 9 lines · Greg KH
Quoted 6 lines · Deepak R Varma

Hello,
I am reviewing the file: drivers/staging/greybus/audio_manager_module.c and have found that there are several gb_audio_module_*_show functions that accept "struct gb_audio_manager_module_attribute * " as a function parameter. However, this parameter is not used and should not be necessary. Would you suggest cleaning up such functions.

Try removing it and see why it is really needed to be there :)

Sounds exciting. I will definitely do that.

Quoted 2 lines

good luck!

Thank you.
Deepak.

Quoted 2 lines

greg k-h

#3 lore raw
In reply to Greg KH
Quoted 9 lines · Greg KH
Quoted 6 lines · Deepak R Varma

Hello,
I am reviewing the file: drivers/staging/greybus/audio_manager_module.c and have found that there are several gb_audio_module_*_show functions that accept "struct gb_audio_manager_module_attribute * " as a function parameter. However, this parameter is not used and should not be necessary. Would you suggest cleaning up such functions.

Try removing it and see why it is really needed to be there :)

Thank you Greg. I tried that and realised that the internal show function signature definition will mismatch. It will not be a straight forward change for the clean up sake.

I got my answer. Thanks again.
Deepak.

Quoted 4 lines

good luck!

greg k-h