Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7011809ybi; Thu, 13 Jun 2019 08:07:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBY8URB6LD3SEsaSb/bu/DNxceJmBXoWgx9fQ72mJWdaOEJv+fF5IfTuKU39oP26V9yv+S X-Received: by 2002:a65:668e:: with SMTP id b14mr26926747pgw.407.1560438478199; Thu, 13 Jun 2019 08:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438478; cv=none; d=google.com; s=arc-20160816; b=IyDFjxf8Kr7xp7DcDaFpaP9EX0t1q7GiE+bUd9UEjopw5ITZ5+QGHHm9lGK+3yorz+ FKU1Phce2HPISCbivjCl7MZ6q8UwGLrMnqJOPE9OgS04SLgpDixy7h0S6ma8ZWz3Glx6 R9dmqLV+W79D6qowmbuMEOQP5CYUhvMS0qjxGATXA9VHNdPpj1O40O5mqGGfixg2D7Ju Q7eoZvruZ89Azo/ZcAHBe448USD7G3E6isyDiT633zcWux2kIwkntsOuoZ8MuPzLeEUR /QBB1dOVqJvrcOJMX9CwmIw6C530Y45KCOicebBcpwGqTlaQqnPj8xuskoJn4n+f5ecT mJ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5XOjnBTIte3Ygwkv1UZjIgvSm0wdrnBnbAONBtz1M9k=; b=Dw8vl9om0xzsVXnsYnyHO4/RW7Hhh0xAtPF9amNWHY495bSnseUsnmfjBmwLKJPGUX tdqoRn9ZoEVHVbxWuAgfzE1aJO1xpZsjAxP33wBJHodIo0nL2VdzXHJioSxKM5VDmUt2 OFM/7Or3psPxGdK6h8NIx1EyZ9UbYUN43nD1Ug5aQbUV1QNDB15nCMkUJAq5eS3vgW3A CKz/mzKCZ/vKkoQ8fFyBwA0JvlY3A86hOQ+coSqVDCaNvseQbqtKDgk6+2v1YPfW/Cei B5ONR9Li5Z672JB9e+0II0u+WX4r/3WDCsopQObg65Tr7LR7bqPOvnAYBn6VZhQjLZKm bImg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si3348168plo.297.2019.06.13.08.07.43; Thu, 13 Jun 2019 08:07:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387646AbfFMPHN (ORCPT + 99 others); Thu, 13 Jun 2019 11:07:13 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54488 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387604AbfFMPHK (ORCPT ); Thu, 13 Jun 2019 11:07:10 -0400 Received: from turingmachine.home (unknown [IPv6:2804:431:d719:d9b5:d711:794d:1c68:5ed3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tonyk) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 6CB4D281A15; Thu, 13 Jun 2019 16:07:07 +0100 (BST) From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: linux-media@vger.kernel.org Cc: mchehab@kernel.org, hverkuil@xs4all.nl, helen.koike@collabora.com, kernel@collabora.com, lkcamp@lists.libreplanetbr.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH 2/4] media: vimc: Makefile: file cleanup Date: Thu, 13 Jun 2019 12:06:14 -0300 Message-Id: <20190613150616.19336-3-andrealmeid@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190613150616.19336-1-andrealmeid@collabora.com> References: <20190613150616.19336-1-andrealmeid@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: André Almeida Suggested-by: Helen Koike --- drivers/media/platform/vimc/Makefile | 12 +++--------- drivers/media/platform/vimc/vimc-common.c | 4 ---- drivers/media/platform/vimc/vimc-streamer.c | 4 ---- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/drivers/media/platform/vimc/Makefile b/drivers/media/platform/vimc/Makefile index c4fc8e7d365a..96d06f030c31 100644 --- a/drivers/media/platform/vimc/Makefile +++ b/drivers/media/platform/vimc/Makefile @@ -1,11 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -vimc-objs := vimc-core.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 +vimc-y := vimc-core.o vimc-common.o vimc-streamer.o -obj-$(CONFIG_VIDEO_VIMC) += vimc.o vimc_capture.o vimc_common.o vimc-debayer.o \ - vimc_scaler.o vimc_sensor.o vimc_streamer.o +obj-$(CONFIG_VIDEO_VIMC) += vimc.o vimc-capture.o vimc-debayer.o \ + vimc-scaler.o vimc-sensor.o diff --git a/drivers/media/platform/vimc/vimc-common.c b/drivers/media/platform/vimc/vimc-common.c index f4d2073076ed..03016f204d05 100644 --- a/drivers/media/platform/vimc/vimc-common.c +++ b/drivers/media/platform/vimc/vimc-common.c @@ -377,7 +377,3 @@ void vimc_ent_sd_unregister(struct vimc_ent_device *ved, struct v4l2_subdev *sd) v4l2_device_unregister_subdev(sd); } EXPORT_SYMBOL_GPL(vimc_ent_sd_unregister); - -MODULE_DESCRIPTION("Virtual Media Controller Driver (VIMC) Common"); -MODULE_AUTHOR("Helen Koike "); -MODULE_LICENSE("GPL"); diff --git a/drivers/media/platform/vimc/vimc-streamer.c b/drivers/media/platform/vimc/vimc-streamer.c index 26b674259489..236ade38f1da 100644 --- a/drivers/media/platform/vimc/vimc-streamer.c +++ b/drivers/media/platform/vimc/vimc-streamer.c @@ -188,7 +188,3 @@ int vimc_streamer_s_stream(struct vimc_stream *stream, return 0; } EXPORT_SYMBOL_GPL(vimc_streamer_s_stream); - -MODULE_DESCRIPTION("Virtual Media Controller Driver (VIMC) Streamer"); -MODULE_AUTHOR("Lucas A. M. Magalhães "); -MODULE_LICENSE("GPL"); -- 2.22.0