From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0095B71B48; Mon, 15 Apr 2024 12:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185350; cv=none; b=XR8InwtxAPlatyKodeCwpZ2ffCsllsvvxnuNi9LFIKAsTJq2MjRJPX6KJWZtFTn1m0E/3o4ZrIoUbH7CpVtwFqkNabeyil1TteCufjup9oradBlphOedmn/jMlm4nFfhlGtR0oYtJnGdHJXbLkAzLMTfpXwUy1+lpvyGRpg4/+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185350; c=relaxed/simple; bh=+VqGBe/1XtOVVrJVDVR7EnXU0TpsDtuKxsPJDmrqNPo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FCM9mNvtrM/uu3tlEGtZh263BuqVOyPEI2V86f8EaXwZhqahWUYmJSARJ6QlFWRSj9W8Vq+muBXPXEyj7dtZj2AQfjiYvPv9UY5YuR7qSOftkazodqF6l4G7YIBRmGzvpZ4GGJjrZ9xvAcONcyI5QNjQZbevmeePGk8/pkgUk80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=k1UaZZLb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k1UaZZLb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D82B1C2BD10; Mon, 15 Apr 2024 12:49:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713185349; bh=+VqGBe/1XtOVVrJVDVR7EnXU0TpsDtuKxsPJDmrqNPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k1UaZZLbgHFK/GP4ljjojnIK/os/BpNk9LprnYbsgbudo4RXjl2HWn3dPuJ0TwRbr Y6crVVbY5WdtXKGDLXIJ/cK3xIfu1O+hrbu93HZWn5UB3nwssDFdgLhyJCbJEFaa7i M1IkBX9bkyc6lmqzIgZLAvB+hnszUOu75AysvuK4oYAHLCTXyHohvvVLY61KjZiwvb 0ceu9Jo3eyGZvObTO3f3PQvMxwLbPBR2Kz+BNd0L2LwB/QmxRhB2T4Gi1kArNRASx5 zTObTZGaEVbc2gFFH1GxTR71uV9yvdEUxC7FMkZipdJ6ccPGtr4idLkacm33BobTLC QDkFIZ+2AuTJQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= , Mark Brown , Sasha Levin , lgirdwood@gmail.com Subject: [PATCH AUTOSEL 6.8 02/15] regulator: tps65132: Add of_match table Date: Mon, 15 Apr 2024 06:02:42 -0400 Message-ID: <20240415100311.3126785-2-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240415100311.3126785-1-sashal@kernel.org> References: <20240415100311.3126785-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.6 Content-Transfer-Encoding: 8bit From: André Apitzsch [ Upstream commit a469158eaf8f4b10263b417856d923dfa38ae96d ] Add of_match table for "ti,tps65132" compatible string. This fixes automatic driver loading when using device-tree, and if built as a module like major linux distributions do. Signed-off-by: André Apitzsch Link: https://msgid.link/r/20240325-of_tps65132-v1-1-86a5f7ef4ede@apitzsch.eu Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/tps65132-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/tps65132-regulator.c b/drivers/regulator/tps65132-regulator.c index a06f5f2d79329..9c2f0dd42613d 100644 --- a/drivers/regulator/tps65132-regulator.c +++ b/drivers/regulator/tps65132-regulator.c @@ -267,10 +267,17 @@ static const struct i2c_device_id tps65132_id[] = { }; MODULE_DEVICE_TABLE(i2c, tps65132_id); +static const struct of_device_id __maybe_unused tps65132_of_match[] = { + { .compatible = "ti,tps65132" }, + {}, +}; +MODULE_DEVICE_TABLE(of, tps65132_of_match); + static struct i2c_driver tps65132_i2c_driver = { .driver = { .name = "tps65132", .probe_type = PROBE_PREFER_ASYNCHRONOUS, + .of_match_table = of_match_ptr(tps65132_of_match), }, .probe = tps65132_probe, .id_table = tps65132_id, -- 2.43.0