mirror of https://github.com/torvalds/linux.git
(struct gb_audio_ctl_elem_info*)->type has the type of __u8 so there is no concern about the byte order. __force is safe to use. Found by sparse, $ make C=2 drivers/staging/greybus/ drivers/staging/greybus/audio_topology.c:185:24: warning: cast to restricted snd_ctl_elem_type_t Suggested-by: Alex Elder <elder@linaro.org> Signed-off-by: Coiby Xu <coiby.xu@gmail.com> Link: https://lore.kernel.org/r/20201002233057.74462-3-coiby.xu@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| Documentation | ||
| tools | ||
| Kconfig | ||
| Makefile | ||
| TODO | ||
| arche-apb-ctrl.c | ||
| arche-platform.c | ||
| arche_platform.h | ||
| audio_apbridgea.c | ||
| audio_apbridgea.h | ||
| audio_codec.c | ||
| audio_codec.h | ||
| audio_gb.c | ||
| audio_helper.c | ||
| audio_helper.h | ||
| audio_manager.c | ||
| audio_manager.h | ||
| audio_manager_module.c | ||
| audio_manager_private.h | ||
| audio_manager_sysfs.c | ||
| audio_module.c | ||
| audio_topology.c | ||
| authentication.c | ||
| bootrom.c | ||
| camera.c | ||
| firmware.h | ||
| fw-core.c | ||
| fw-download.c | ||
| fw-management.c | ||
| gb-camera.h | ||
| gbphy.c | ||
| gbphy.h | ||
| gpio.c | ||
| greybus_authentication.h | ||
| greybus_firmware.h | ||
| hid.c | ||
| i2c.c | ||
| light.c | ||
| log.c | ||
| loopback.c | ||
| power_supply.c | ||
| pwm.c | ||
| raw.c | ||
| sdio.c | ||
| spi.c | ||
| spilib.c | ||
| spilib.h | ||
| uart.c | ||
| usb.c | ||
| vibrator.c | ||