Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3049256imm; Fri, 24 Aug 2018 09:37:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaoAjOAZHCWRn+8z4J9lei/X2cD2EsujTX584pMHbKm4x/IFXngXKEZQumiBNaF35YQhM6b X-Received: by 2002:a17:902:654b:: with SMTP id d11-v6mr2403087pln.8.1535128675648; Fri, 24 Aug 2018 09:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535128675; cv=none; d=google.com; s=arc-20160816; b=H8XPgUyKrgfFD6q7wjNrW6aIPSlFIgpk6Vqg/kko2nO8JAPzpylCXws8TsLez+1IkA /EbryGDd2uYJtNwRmqXzxV3G8KqdJ59T1HeStlIFFJ+4vUSq+rkpl/D5nyRti5cozdBd FBoBvdNe8fauZWKLYEpTXaYKlkVN+0HyFXNOqhHMkuFKzxZ8LXgvQkerZtuGcd994nMj kii0FCWYfP9ZL52LhHbRmj0IUXxaB/QF8gjMlSze6bP4FToLSF3j3eVx12sdKZp56bMA 0uiIoQE3qi1eih4tAsV3n/99NvVBi4d2SDqlcEX8DlgOb9ybT/Fjv757/NupMZUfuDA6 u/6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=gCDtH5Kaj31cXfz0plE5Vc6FqUOhonnal96qBT3EV9M=; b=rSLy6H1oZpCfpLPAvULM6OgNduSWzbalyxjT+Eg9yjtIFxpSvRXSLAL1zYLWiwz5ex EjQ5jys7rPD2EiLyDluoHBHM3/SXUtPtYxXaOzVTudfIZ6mkWSO4gqr3MAOOSy/RHD1P mmvgVhAuReDuSTJ527fLKr3cxYuJnqSGuEDGsXeCeD85G3pmH7rTfOgRZFoSltmcpTkD oeLS1HhU0Bv6bS2tCxaJJVuLLnUH3/CGYEt22F4ose625tMNQyzUYbxjvfIctmuSELzq 8D70OgMX2BGoR9tBremuYdFZcZOFLT3TAHyDupZUiySQ7M4+VsqMyr4IWELF9IqLF6ou Yu+Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11-v6si7483912pfd.231.2018.08.24.09.37.40; Fri, 24 Aug 2018 09:37:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728237AbeHXULf (ORCPT + 99 others); Fri, 24 Aug 2018 16:11:35 -0400 Received: from srv-hp10-72.netsons.net ([94.141.22.72]:33160 "EHLO srv-hp10-72.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbeHXULd (ORCPT ); Fri, 24 Aug 2018 16:11:33 -0400 Received: from [109.168.11.45] (port=58220 helo=pc-ceresoli.dev.aim) by srv-hp10.netsons.net with esmtpa (Exim 4.91) (envelope-from ) id 1ftF49-00EAi1-CK; Fri, 24 Aug 2018 18:36:05 +0200 From: Luca Ceresoli To: linux-media@vger.kernel.org Cc: Luca Ceresoli , Leon Luo , Mauro Carvalho Chehab , Sakari Ailus , linux-kernel@vger.kernel.org Subject: [PATCH 3/7] media: imx274: don't hard-code the subdev name to DRIVER_NAME Date: Fri, 24 Aug 2018 18:35:21 +0200 Message-Id: <20180824163525.12694-4-luca@lucaceresoli.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180824163525.12694-1-luca@lucaceresoli.net> References: <20180824163525.12694-1-luca@lucaceresoli.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv-hp10.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: srv-hp10.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: srv-hp10.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forcibly setting the subdev name to DRIVER_NAME (i.e. "IMX274") makes it non-unique and less informative. Let the driver use the default name from i2c, e.g. "IMX274 2-001a". Signed-off-by: Luca Ceresoli --- drivers/media/i2c/imx274.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c index 9b524de08470..570706695ca7 100644 --- a/drivers/media/i2c/imx274.c +++ b/drivers/media/i2c/imx274.c @@ -1885,7 +1885,6 @@ static int imx274_probe(struct i2c_client *client, imx274->client = client; sd = &imx274->sd; v4l2_i2c_subdev_init(sd, client, &imx274_subdev_ops); - strlcpy(sd->name, DRIVER_NAME, sizeof(sd->name)); sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS; /* initialize subdev media pad */ -- 2.17.1