From patchwork Wed Jul 10 07:30:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13728963 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 A4532C38150 for ; Wed, 10 Jul 2024 07:31:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version: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:In-Reply-To:References:List-Owner; bh=zeoMyAYH/0AY49p/6wUMg/daMN8t7+U6lzuDcGnmvQs=; b=eEzDQBqSVA50hWX7BFV7LCSMMS gp3blhsYWYFuOq2sOjiJMwt/Rifn4JaYeW1zzQ85cxtX6p0VYJJE1KSApdXNExeS9GUQhXyM35/3+ 65t64lzX7C9au+LaztVTisiIiIjYpobw4lsdLJqipIArJ5N9a3tG4TfCQj+9UmDuXTAn1tmAPqK/X 9cFC4fVnZ+ulBb3OvoUll873kHBRg2Xi/okzQD3D/W2iypmTBARoC+86QyTQZP2QVYGwtl0gyNZUq fqh6VbQ1dqF2mw4XvCt4xNfO/Yslh3Ifzjgko+xFDicXuUpO/WoTomlCXRVKBEluUVXYhxNvU68+y 6/HRU8RA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRRnV-00000009k5H-2OAP; Wed, 10 Jul 2024 07:31:29 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRRnD-00000009k1K-29RD for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2024 07:31:13 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a77cc73d35fso97547166b.0 for ; Wed, 10 Jul 2024 00:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1720596669; x=1721201469; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zeoMyAYH/0AY49p/6wUMg/daMN8t7+U6lzuDcGnmvQs=; b=GPyCRBpEGrS06AM0R4ZHOgJsbp4cL6Ohv7MVXsCte3cZPrp1TusN4oYqw7uXWmaL1G 3dNQCGOhOVNZBliopa93gxstv721KKXMpPvSkKV94mif7dwlLmO37OOKwRthPL/GJ8AV JlrqPJouUhdiSNe9XBeeR1qgPQ0jxsxm1XGM2Y+Zlr5PToXROeo1fwy2G2EKNLtSDgJh OtttYIdoPNpLoUtpZ40D4p3nARUjuiQ2FIuvNQ5QcPmbwebNCgV9YyWnksI1Fz3VlDAz B7uNMlJDaezn51bi1NjquO/gOIPJ6l5sqXxO1US97L8ftGwU9CwovkJJJGbN+JfCOUwt TOlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720596669; x=1721201469; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zeoMyAYH/0AY49p/6wUMg/daMN8t7+U6lzuDcGnmvQs=; b=oSaBe8XZ5poO0aXpfdjCLpKFAokYwqQpCM5la7ZjjN7nIBWkei4gqBo2Fh2zVvBAhm awB9E6mUpCyeLOW/XRovNcl7992lLafSs7nlpxn7qo8t1Dne0quZntd3wYwd4++uAXoT cj52lYOHaWQyaN6Ots/y47pULjb9p+cL8qtnnPYxXw4f3ZEPKPpcneZe4hRwwKsz2hTR rpF9bL0aYrqaLDS3MB6la9wkY72G2NR6RbJSv0932diCCESGTXVqLvNDS23tY51HX4an uwpsZMDCDuBYq871tiJbUHsacNbDbMhBX1nrEwoXHyMkBDgSQf+4k5JX+IezQNKysQIq Rhdg== X-Forwarded-Encrypted: i=1; AJvYcCXbkV6m8fh5PGyMsz+1hvr6AuT5N/QReC8+NQVxkZT19DROfV73Q6V4PNVJFhJzLObXx7N7JlhCwP8WE09cCmW+kdzfS0oAtQX3KxwV1CiLTl5Pj9M= X-Gm-Message-State: AOJu0YzUllsywFaw/P77rlAVZqWnz6ZHJPKoBlVmWnzrJsbfvy5o58OW XtL0wrDq0nt11EGvnHgK65n/lh/16VW1HslG6lXHfw9ilxyFOuPYTnZ94cULk6g= X-Google-Smtp-Source: AGHT+IGa902OsSSWrLryMzBb4Z7dwfffKSYSGip8Pq0Sc3sPP9BE70P5Tpa4HHUD4DT0BlnE0QzRkA== X-Received: by 2002:a17:907:76cf:b0:a72:5967:b34 with SMTP id a640c23a62f3a-a780d267c19mr335101166b.22.1720596668917; Wed, 10 Jul 2024 00:31:08 -0700 (PDT) Received: from localhost (p50915eb1.dip0.t-ipconnect.de. [80.145.94.177]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a86f62bsm136608866b.199.2024.07.10.00.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jul 2024 00:31:08 -0700 (PDT) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Heikki Krogerus Cc: Greg Kroah-Hartman , Guenter Roeck , linux-usb@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] usb: typec: Drop explicit initialization of struct i2c_device_id::driver_data to 0 Date: Wed, 10 Jul 2024 09:30:50 +0200 Message-ID: <20240710073050.192806-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3664; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=Nox0WDYkPvAoxUCnliq+o9vOQ6rG1/i+jlOyvW0SQhY=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBmjjiqsnamzmn5YFRYQqcfNOpdF/BBUPTls9NUy atWrP1ZZCqJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZo44qgAKCRCPgPtYfRL+ TgEhB/9bSs3HH4og760D8KT4qcx9cUaeTq1lr+ED5dBa3Srz6KszoCao9p41K7im4QEuSChDhQ3 JYUxrUiffdhn3MfS4pMefm0J1IGFNdoz9TyO7m2JhrMlfb2+ZYrJpCd0JXbV7dTM6Etw35qNIdN DDVRdrqcOwtDOQkCz3dw1Gl/KbgAFi0ezox0uYpbFH8+bl0YBjG2ROci8tYwMz1ohr8+rv3HgdE 1DLDGdgLE6ehl5VtUjyke40VVZaQ8N3iHJkY6eITBj0VggOa2GgeMADKjSXLlNnpmNoV2D06fP1 4j+wIg4ZsZGImMXi7mHAVfib4ZmRdNtdUNMC40tYm+MBEwoF X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_003111_660730_7A6498D2 X-CRM114-Status: GOOD ( 14.26 ) 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 These driver don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. Signed-off-by: Uwe Kleine-König --- drivers/usb/typec/anx7411.c | 2 +- drivers/usb/typec/tcpm/fusb302.c | 4 ++-- drivers/usb/typec/tcpm/tcpci.c | 2 +- drivers/usb/typec/tcpm/tcpci_maxim_core.c | 2 +- drivers/usb/typec/ucsi/ucsi_ccg.c | 2 +- drivers/usb/typec/ucsi/ucsi_stm32g0.c | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) base-commit: 82d01fe6ee52086035b201cfa1410a3b04384257 diff --git a/drivers/usb/typec/anx7411.c b/drivers/usb/typec/anx7411.c index b12a07edc71b..5a5bf3532ad7 100644 --- a/drivers/usb/typec/anx7411.c +++ b/drivers/usb/typec/anx7411.c @@ -1566,7 +1566,7 @@ static void anx7411_i2c_remove(struct i2c_client *client) } static const struct i2c_device_id anx7411_id[] = { - {"anx7411", 0}, + { "anx7411" }, {} }; diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index ef18a448b740..e2fe479e16ad 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -1820,8 +1820,8 @@ static const struct of_device_id fusb302_dt_match[] __maybe_unused = { MODULE_DEVICE_TABLE(of, fusb302_dt_match); static const struct i2c_device_id fusb302_i2c_device_id[] = { - {"typec_fusb302", 0}, - {}, + { "typec_fusb302" }, + {} }; MODULE_DEVICE_TABLE(i2c, fusb302_i2c_device_id); diff --git a/drivers/usb/typec/tcpm/tcpci.c b/drivers/usb/typec/tcpm/tcpci.c index 8a18d561b063..b862fdf3fe1d 100644 --- a/drivers/usb/typec/tcpm/tcpci.c +++ b/drivers/usb/typec/tcpm/tcpci.c @@ -947,7 +947,7 @@ static void tcpci_remove(struct i2c_client *client) } static const struct i2c_device_id tcpci_id[] = { - { "tcpci", 0 }, + { "tcpci" }, { } }; MODULE_DEVICE_TABLE(i2c, tcpci_id); diff --git a/drivers/usb/typec/tcpm/tcpci_maxim_core.c b/drivers/usb/typec/tcpm/tcpci_maxim_core.c index eec3bcec119c..760e2f92b958 100644 --- a/drivers/usb/typec/tcpm/tcpci_maxim_core.c +++ b/drivers/usb/typec/tcpm/tcpci_maxim_core.c @@ -538,7 +538,7 @@ static void max_tcpci_remove(struct i2c_client *client) } static const struct i2c_device_id max_tcpci_id[] = { - { "maxtcpc", 0 }, + { "maxtcpc" }, { } }; MODULE_DEVICE_TABLE(i2c, max_tcpci_id); diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index ba4db2310a05..b3ec799fc873 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -1501,7 +1501,7 @@ static const struct of_device_id ucsi_ccg_of_match_table[] = { MODULE_DEVICE_TABLE(of, ucsi_ccg_of_match_table); static const struct i2c_device_id ucsi_ccg_device_id[] = { - {"ccgx-ucsi", 0}, + { "ccgx-ucsi" }, {} }; MODULE_DEVICE_TABLE(i2c, ucsi_ccg_device_id); diff --git a/drivers/usb/typec/ucsi/ucsi_stm32g0.c b/drivers/usb/typec/ucsi/ucsi_stm32g0.c index d948c3f579e1..ddbec2b78c8e 100644 --- a/drivers/usb/typec/ucsi/ucsi_stm32g0.c +++ b/drivers/usb/typec/ucsi/ucsi_stm32g0.c @@ -739,8 +739,8 @@ static const struct of_device_id __maybe_unused ucsi_stm32g0_typec_of_match[] = MODULE_DEVICE_TABLE(of, ucsi_stm32g0_typec_of_match); static const struct i2c_device_id ucsi_stm32g0_typec_i2c_devid[] = { - {"stm32g0-typec", 0}, - {}, + { "stm32g0-typec" }, + {} }; MODULE_DEVICE_TABLE(i2c, ucsi_stm32g0_typec_i2c_devid);