From patchwork Thu Oct 5 11:48:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 13410146 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF90BE92706 for ; Thu, 5 Oct 2023 14:43:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234176AbjJEOnp (ORCPT ); Thu, 5 Oct 2023 10:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238893AbjJEOlR (ORCPT ); Thu, 5 Oct 2023 10:41:17 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB24522E38 for ; Thu, 5 Oct 2023 07:15:47 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20231005114824euoutp016dc03b43c5450b2891fb19080b348990~LM61TVx9u1491214912euoutp01M for ; Thu, 5 Oct 2023 11:48:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20231005114824euoutp016dc03b43c5450b2891fb19080b348990~LM61TVx9u1491214912euoutp01M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1696506504; bh=K0V3kKyiwioyVGjMGi18lGgN46kvGuxop3Lkg0la2P4=; h=From:To:Cc:Subject:Date:References:From; b=tZSQZwrmlYxbn7pM3sAZiPs3fBMJj246a/8U313T1Oie8s2uDGQdc7nS2famFYMfA 5JjjQJrhoj4E0IEJwvBo6Bf4CyL+KB2v3rK/dQ7/LK/7n5DG9tHS2CIipG/GiwnFVU bi7vHgqg0z1yMXzYqdDgzdJCiN6GyAK2X84liCoA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20231005114823eucas1p1debb8a190c079839ebdd65f135cd07e3~LM61ICxH32689026890eucas1p1G; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 47.85.42423.782AE156; Thu, 5 Oct 2023 12:48:23 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d~LM60zr3c02300223002eucas1p24; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231005114823eusmtrp10da3f848dd26e1c58cf13060472f7755~LM60zCfMo2664026640eusmtrp1C; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-ab-651ea2873832 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 3C.CC.10549.782AE156; Thu, 5 Oct 2023 12:48:23 +0100 (BST) Received: from AMDC4653.digital.local (unknown [106.120.51.32]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20231005114823eusmtip13660e942bc309057656955b195d06761~LM60c6aVi1331813318eusmtip17; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) From: Marek Szyprowski To: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Dmitry Torokhov , Krzysztof Kozlowski Subject: [PATCH] Input: max77693-haptic - add device-tree compatible strings Date: Thu, 5 Oct 2023 13:48:16 +0200 Message-Id: <20231005114816.1101953-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42LZduzned32RXKpBgf+mVscXvSC0WLv663s Fjc/fWO1uLxrDpvF2iN32R1YPXbOusvucefaHjaPvi2rGD0+b5ILYInisklJzcksSy3St0vg yrg+oY+94A1Hxez1y1gaGI+xdzFyckgImEgsv/WDuYuRi0NIYAWjxOkZjxghnC+MEuvaz7BC OJ8ZJf4ffwLXMnHlSSaIxHJGia4ZX5jgWjr/LQarYhMwlOh628UGYosI2ErsWDEdrIhZYBqj xOLXJ8GKhAV8JL5Ov8QEYrMIqErc7brBCmLzCthL/D1+gw1inbzE/oNnmSHighInZz5hAbGZ geLNW2eDXS4h0Mkh8ebgDqgGF4nOJScZIWxhiVfHt0DdLSNxenIPC0RDO6PEgt/3mSCcCYwS Dc9vQXVYS9w59wtoEgfQCk2J9bv0IcKOEoeefGMECUsI8EnceCsIcQSfxKRt05khwrwSHW1C ENVqErOOr4Nbe/DCJWYI20Oi8/EEsDOFBGIllp2fwzaBUWEWktdmIXltFsINCxiZVzGKp5YW 56anFhvmpZbrFSfmFpfmpesl5+duYgSmlNP/jn/awTj31Ue9Q4xMHIyHGCU4mJVEeNMbZFKF eFMSK6tSi/Lji0pzUosPMUpzsCiJ82rbnkwWEkhPLEnNTk0tSC2CyTJxcEo1MAUkPJs6u/8r s5bhJA7T5oUWSpI6+3N4/1jObqqa2pHQ9oun5WPU94XaB69ysfq/fsa1+6AaH+9Xz7yFaxgW lHtM2PN86Y+D/9hf2J2qamiKnvMjTDt0j1O1mvwt9SLtl+F5ft7Cf7SZ5gsv4ljXl+F+SpqB rbFi8e/Ogr/KGtVrcg5YrJ/wnLc16wnX2r8efsLXFwpJFQikJaa+mPlKOdw9zM2R2Zx9+i/m tvsrvXNNVEsYrmUfZN854y7HnRk5or4nfvMeYN80xdnyu6HYHdmjHm3B4e+jTn0R/Gpy+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X-CMS-MailID: 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d X-Msg-Generator: CA X-RootMTR: 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d References: Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add the needed device-tree compatible strings to the MAX77693 haptic driver, so it can be automatically loaded when compiled as a kernel module and given device-tree contains separate (i.e. 'motor-driver') node under the main PMIC node. Signed-off-by: Marek Szyprowski --- drivers/input/misc/max77693-haptic.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/input/misc/max77693-haptic.c b/drivers/input/misc/max77693-haptic.c index 80f4416ffe2f..2a6e713b32f4 100644 --- a/drivers/input/misc/max77693-haptic.c +++ b/drivers/input/misc/max77693-haptic.c @@ -412,6 +412,13 @@ static const struct platform_device_id max77693_haptic_id[] = { }; MODULE_DEVICE_TABLE(platform, max77693_haptic_id); +static const struct of_device_id of_max77693_haptic_dt_match[] = { + { .compatible = "maxim,max77693-haptic", }, + { .compatible = "maxim,max77843-haptic", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, of_max77693_haptic_dt_match); + static struct platform_driver max77693_haptic_driver = { .driver = { .name = "max77693-haptic",