Commit d13b3cdc authored by André Almeida's avatar André Almeida Committed by Mauro Carvalho Chehab

media: vimc: Makefile: file cleanup

Remove redundant Makefile rules (vimc_capture-objs, ...).

Stop exposing vimc-{common, streamer} as modules, since there's no use
case where they would be individually added/removed from Vimc. As
consequence, remove MODULE_ macros from vimc-{common, streamer}.

`-objs` is fitted for building host programs, change to `-y`, more
straightforward for device drivers.
Signed-off-by: default avatarAndré Almeida <andrealmeid@collabora.com>
Suggested-by: default avatarHelen Koike <helen.koike@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 9aa36e61
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
vimc-objs := vimc-core.o vimc-y := vimc-core.o vimc-common.o vimc-streamer.o
vimc_capture-objs := vimc-capture.o
vimc_common-objs := vimc-common.o
vimc_debayer-objs := vimc-debayer.o
vimc_scaler-objs := vimc-scaler.o
vimc_sensor-objs := vimc-sensor.o
vimc_streamer-objs := vimc-streamer.o
obj-$(CONFIG_VIDEO_VIMC) += vimc.o vimc_capture.o vimc_common.o vimc-debayer.o \ obj-$(CONFIG_VIDEO_VIMC) += vimc.o vimc-capture.o vimc-debayer.o \
vimc_scaler.o vimc_sensor.o vimc_streamer.o vimc-scaler.o vimc-sensor.o
...@@ -377,7 +377,3 @@ void vimc_ent_sd_unregister(struct vimc_ent_device *ved, struct v4l2_subdev *sd) ...@@ -377,7 +377,3 @@ void vimc_ent_sd_unregister(struct vimc_ent_device *ved, struct v4l2_subdev *sd)
v4l2_device_unregister_subdev(sd); v4l2_device_unregister_subdev(sd);
} }
EXPORT_SYMBOL_GPL(vimc_ent_sd_unregister); EXPORT_SYMBOL_GPL(vimc_ent_sd_unregister);
MODULE_DESCRIPTION("Virtual Media Controller Driver (VIMC) Common");
MODULE_AUTHOR("Helen Koike <helen.fornazier@gmail.com>");
MODULE_LICENSE("GPL");
...@@ -188,7 +188,3 @@ int vimc_streamer_s_stream(struct vimc_stream *stream, ...@@ -188,7 +188,3 @@ int vimc_streamer_s_stream(struct vimc_stream *stream,
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(vimc_streamer_s_stream); EXPORT_SYMBOL_GPL(vimc_streamer_s_stream);
MODULE_DESCRIPTION("Virtual Media Controller Driver (VIMC) Streamer");
MODULE_AUTHOR("Lucas A. M. Magalhães <lucmaga@gmail.com>");
MODULE_LICENSE("GPL");
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