From patchwork Fri Jan 7 23:46:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12707135 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 991AAC433F5 for ; Fri, 7 Jan 2022 23:49:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zDzc9Lo/m29HY9067KkdhhhbWvSPjYY1h+HGzs76eXc=; b=2liHA24Eamf6KE Iz8hUsAKP0uml/PhTzmIIYeJJbdoTSuec5wxNbXaxQBhSQx3TTpDpth3G6kuC2RIoM7ouqOYlPNdx Clip50nuVlyTQfJ6LpSWUXe2BcUtzo4TV4OfRtqDMmrLULn72lEwff41eeE9lx57nDDhD//aFcDbg K1+espEyslmhzB9RNM0DAs7Ug2zQwWKU25b+0GPkXW/yhLaQLUTsIqgJRUP/aCbDy7o5amzYj5W/E CpO9axdg7dMo1j9NiPYBQ9ltooYVMRDmVITswB/4ZjsdiUUa4z0AcAcm1qzivwRBKr6aFbTgLgZB2 ynXm89/LxENTN/7eoKDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n5yyF-005XTg-GY; Fri, 07 Jan 2022 23:48:31 +0000 Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n5yyA-005XQq-PH; Fri, 07 Jan 2022 23:48:28 +0000 Received: by mail-ua1-x929.google.com with SMTP id x33so11688978uad.12; Fri, 07 Jan 2022 15:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EIZk0/qrlbHk+D+cMnIml9bJG7V5kb5RZ/SaCUVYBAY=; b=ff2nsmcgN8gRdsIDTf1XYGNtXyP31JzUHAlbJBfa3CiJeUpCJifzJ44U4qPadzdRVM AFKkFj3cKVqGePtvbdnKJZkelTgYCq68/g6FyzoGzZifVtFi/PE2gXEz20eNSPR93v0i BgQMke5lc884eJszRh16/7YZDPaxZLKMiMrIl8RmDOz0Xx9mlWld4G5NtTPjbE2iztid FXImzzzSAmY4YvVWlNwZZqpV4YuYBbnBK73B/wjfLZoSi7r31lTdQa0dPX9Huy5qiwIl sAAkcTVV5cQHERv6e906kG75nV45SLjx9OFPXoufwvN+jH/7euFRdnITBD4/YB/B/6i0 dF9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EIZk0/qrlbHk+D+cMnIml9bJG7V5kb5RZ/SaCUVYBAY=; b=E3vWcugwpsHhmbw4YlvW5TRfbnMNdNOYAXxQwNbKjByawXOuBGrzRFDwjI+twgVkSH B6QemYzqy9JPOpgxdDYCa5YIF+bsACwIH3y4CFVu7BmGfp+3BVw8R/p7IneUOCinqvZJ 6DGn6GVbrdI3HOiVB7ckcVpa5RSMT4y/B38kvIbTh64gILhsu4IrpS95Uw9/ollsBa3e yfXTOo+KFgHOdra7XQwA9WGURuYMkjuubCuc/k7mXJ5EEg62mzbrTQutNbKl8ZRNiGJD dsL2Ciu058fTAmD+EYrIA0HAJrpjbsdCwbDDjHdgsOHFzIJ2T1Q2e0XXrAMNYziHgz8h ej7A== X-Gm-Message-State: AOAM5335ls98L46gn43JBIjgVgSFS3tBY+D/6jVevCD37oWT2KLslB3L ELINPGknYr9F7ozJ6Hold1M= X-Google-Smtp-Source: ABdhPJyWNeF7ASXynzT/leso0yUuJElkPHuPa9OSKOGKrxcsz33Uc7mqrtzfaz1NAw+cDg/f0o1Ihg== X-Received: by 2002:a05:6102:2927:: with SMTP id cz39mr21534038vsb.59.1641599305666; Fri, 07 Jan 2022 15:48:25 -0800 (PST) Received: from localhost.localdomain ([181.23.94.152]) by smtp.gmail.com with ESMTPSA id az22sm92911vkb.15.2022.01.07.15.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 15:48:25 -0800 (PST) From: Gaston Gonzalez To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, nsaenz@kernel.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, juerg.haefliger@canonical.com, rdunlap@infradead.org, dave.stevenson@raspberrypi.com, stefan.wahren@i2se.com, unixbhaskar@gmail.com, mitaliborkar810@gmail.com, phil@raspberrypi.com, len.baker@gmx.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, gascoar@gmail.com Subject: [PATCH 2/2] staging: vc04_services: use KBUILD_MODNAME instead of own module name definition Date: Fri, 7 Jan 2022 20:46:22 -0300 Message-Id: <20220107234620.49900-3-gascoar@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220107234620.49900-1-gascoar@gmail.com> References: <20220107234620.49900-1-gascoar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220107_154826_847203_1CA57595 X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove own module name definition and use KBUILD_MODNAME instead, which is the standard way of getting the module name. While at it, one realignment was made to improve readability. Suggested-by: Greg Kroah-Hartman Signed-off-by: Gaston Gonzalez --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c index 35ac0fda6e14..88b1878854e0 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c @@ -33,7 +33,6 @@ #include "mmal-parameters.h" #include "bcm2835-camera.h" -#define BM2835_MMAL_MODULE_NAME "bcm2835-v4l2" #define MIN_WIDTH 32 #define MIN_HEIGHT 32 #define MIN_BUFFER_SIZE (80 * 1024) @@ -1893,8 +1892,7 @@ static int bcm2835_mmal_probe(struct platform_device *pdev) dev->capture.fmt = &formats[3]; /* JPEG */ /* v4l device registration */ - dev->camera_num = v4l2_device_set_name(&dev->v4l2_dev, - BM2835_MMAL_MODULE_NAME, + dev->camera_num = v4l2_device_set_name(&dev->v4l2_dev, KBUILD_MODNAME, &camera_instance); ret = v4l2_device_register(NULL, &dev->v4l2_dev); if (ret) {