From patchwork Sat Sep 23 16:36:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 143946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp271339vqu; Sat, 23 Sep 2023 09:38:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVllRktNQFpmBhCiUzVHv072UDzxvQN/Cm3JbVRegqV7HCfavvjQMdlC6v5aYo5Y00fDeH X-Received: by 2002:a05:6a20:3d8b:b0:15a:3b83:24d1 with SMTP id s11-20020a056a203d8b00b0015a3b8324d1mr3295162pzi.18.1695487105522; Sat, 23 Sep 2023 09:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695487105; cv=none; d=google.com; s=arc-20160816; b=MiYyslxlcXExgclQXr7Pjkq/Vvf956pHTfgWefbSwvw9yuCfa1/Ytm33+Yf4U/YWhi iMzE7ee9KvyAjHOG3BF1VMigIDtKj9ert1EMI6oIhh1EsqFjFMrj2zHLjzGvZNFsxhGd Z7wncJ2M995J9KjQRbO0P1h/E0rjvFp8kE+TKigTcCSFPgGDhlEkGWX0onb7W7nR87qd E7/UbGivbsa1Wd1DOAOsW8LW84815fsQLJPev7IOcVcf8UV6Snw0mcHQhprrNpXin9KZ QOLbsqqiV+XkYP9JkLnrBOsxxxSHlRlxgjY32mwU6NH2CyNEuu96rVXqDAsWlG8TRTH+ 6DyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VZDFMOy2yT2TVGzTeS70umsc80OcbM3n0mypk5zCLZU=; fh=8XHVssQkGTmj2o3ixJJcc9X3fkVzFlM7u16K5Pbqh9w=; b=RzV/rgE8ff+l6HYzDATFxEsKhuzzbPggoIxbKy05bhOi//4phoKcF+wb6kqM60k2Nd VojzT7aPHLOvV4vOQhU4h7tT2/icTG2ZcJmBI3CjVxeepPN6nqOw3YJGPOkMSS3AyTUq 1JpOqiG5/BV5UuduZ5KBn+5mpUe0S8VDHwFymSkt8XbAVqAbESakicnY3O3hH97Z0bkJ WZhWHOzUlA/ewiRpMp4yZ5XWiDgpEV1jGtvA8h+lOlN9QhiLV7lEK0YNh91wTdtLoRIg LD5b3+30vU1zz+xXT2Au5tR4sCEkfFg+NtEejgOOME4PsP326DFgoHc4/d7LNvRznrff uJwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ay14-20020a056a00300e00b0068e4358d041si6192731pfb.175.2023.09.23.09.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 09:38:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1441080A7CD0; Sat, 23 Sep 2023 09:37:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232012AbjIWQhC (ORCPT + 30 others); Sat, 23 Sep 2023 12:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbjIWQg6 (ORCPT ); Sat, 23 Sep 2023 12:36:58 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 99280139; Sat, 23 Sep 2023 09:36:51 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.03,171,1694703600"; d="scan'208";a="180728098" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 24 Sep 2023 01:36:51 +0900 Received: from localhost.localdomain (unknown [10.226.92.12]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 66BA4401DDFD; Sun, 24 Sep 2023 01:36:48 +0900 (JST) From: Biju Das To: Mauro Carvalho Chehab Cc: Biju Das , Hans Verkuil , Jacopo Mondi , =?utf-8?q?Uwe_Kleine-?= =?utf-8?q?K=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko Subject: [PATCH v2 1/3] media: tvp541x: Extend match support for OF tables Date: Sat, 23 Sep 2023 17:36:39 +0100 Message-Id: <20230923163641.31685-2-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230923163641.31685-1-biju.das.jz@bp.renesas.com> References: <20230923163641.31685-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 23 Sep 2023 09:37:16 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777847086736635809 X-GMAIL-MSGID: 1777847086736635809 The driver has an OF match table, still, it uses an ID lookup table for retrieving match data. Currently, the driver is working on the assumption that an I2C device registered via OF will always match a legacy I2C device ID. The correct approach is to have an OF device ID table using i2c_get_match_data() if the devices are registered via OF/ID. Unify the OF/ID table by using tvp514x_reg as match data for both these tables and replace the ID lookup table for the match data by i2c_get_match_data() and simplifly probe(). While at it, remove the trailing comma in the terminator entry for the OF table making code robust against (theoretical) misrebases or other similar things where the new entry goes _after_ the termination without the compiler noticing. Signed-off-by: Biju Das Reviewed-by: Jacopo Mondi --- v1->v2: * Added Rb tag from Jacopo. --- drivers/media/i2c/tvp514x.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index aa6d4b67b6d5..4d0ffaa312c5 100644 --- a/drivers/media/i2c/tvp514x.c +++ b/drivers/media/i2c/tvp514x.c @@ -118,7 +118,7 @@ struct tvp514x_decoder { struct media_pad pad; struct v4l2_mbus_framefmt format; - struct tvp514x_reg *int_seq; + const struct tvp514x_reg *int_seq; }; /* TVP514x default register values */ @@ -1024,7 +1024,6 @@ tvp514x_get_pdata(struct i2c_client *client) static int tvp514x_probe(struct i2c_client *client) { - const struct i2c_device_id *id = i2c_client_get_device_id(client); struct tvp514x_platform_data *pdata = tvp514x_get_pdata(client); struct tvp514x_decoder *decoder; struct v4l2_subdev *sd; @@ -1049,7 +1048,7 @@ tvp514x_probe(struct i2c_client *client) memcpy(decoder->tvp514x_regs, tvp514x_reg_list_default, sizeof(tvp514x_reg_list_default)); - decoder->int_seq = (struct tvp514x_reg *)id->driver_data; + decoder->int_seq = i2c_get_match_data(client); /* Copy board specific information here */ decoder->pdata = pdata; @@ -1183,22 +1182,21 @@ static const struct tvp514x_reg tvp514xm_init_reg_seq[] = { * driver_data - Driver data */ static const struct i2c_device_id tvp514x_id[] = { - {"tvp5146", (unsigned long)tvp5146_init_reg_seq}, - {"tvp5146m2", (unsigned long)tvp514xm_init_reg_seq}, - {"tvp5147", (unsigned long)tvp5147_init_reg_seq}, - {"tvp5147m1", (unsigned long)tvp514xm_init_reg_seq}, - {}, + {"tvp5146", (kernel_ulong_t)tvp5146_init_reg_seq }, + {"tvp5146m2", (kernel_ulong_t)tvp514xm_init_reg_seq }, + {"tvp5147", (kernel_ulong_t)tvp5147_init_reg_seq }, + {"tvp5147m1", (kernel_ulong_t)tvp514xm_init_reg_seq }, + { /* sentinel */ } }; - MODULE_DEVICE_TABLE(i2c, tvp514x_id); #if IS_ENABLED(CONFIG_OF) static const struct of_device_id tvp514x_of_match[] = { - { .compatible = "ti,tvp5146", }, - { .compatible = "ti,tvp5146m2", }, - { .compatible = "ti,tvp5147", }, - { .compatible = "ti,tvp5147m1", }, - { /* sentinel */ }, + { .compatible = "ti,tvp5146", .data = tvp5146_init_reg_seq }, + { .compatible = "ti,tvp5146m2", .data = tvp514xm_init_reg_seq }, + { .compatible = "ti,tvp5147", .data = tvp5147_init_reg_seq }, + { .compatible = "ti,tvp5147m1", .data = tvp514xm_init_reg_seq }, + { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, tvp514x_of_match); #endif From patchwork Sat Sep 23 16:36:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 143947 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp271345vqu; Sat, 23 Sep 2023 09:38:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgZ5icInDkS2S+mOWi1K79mMtTYgVUe7JeogTg+BSM38m8Q7F2Vh3t57CM0JIiC777HyQm X-Received: by 2002:a17:902:e888:b0:1c5:ba50:2b28 with SMTP id w8-20020a170902e88800b001c5ba502b28mr3332637plg.25.1695487106387; Sat, 23 Sep 2023 09:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695487106; cv=none; d=google.com; s=arc-20160816; b=LXXRm6LQLA3eUOOZMWSIxwfr5eH5R1Ms98gD/nXbgZlXakZyRCk5rc+iZ5/HdLo7Vy 81f/8bTk3rSDrl9klhwvScGq+PEm0K+qh3HzaNRqZ0QX0mhSbT4Zkldky+VYmFgzoQoN jHtRLsdXgNz4dpb5Nr4/0dq8TRQs5lZXWSg806EFMMkLWrNeLab5CqYtcuqG8Y6JlnDt 0CkJjoYVIZBjSC6wEELw8LRIbRuBd9Xgp4nQ63hm/qFMpTXBmXS0su8LszoGT7F7jf3x wzDONpGDtDW45Hp1xwcAoaq+TRG0zOSBBB/r+usu95pafFHnIv9ALI5ONe+HCfsZBl4j rrTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bsWsLqeUDRlVBSRZ0dtBfE/gYmIeHXJWe39ePQlLvak=; fh=8XHVssQkGTmj2o3ixJJcc9X3fkVzFlM7u16K5Pbqh9w=; b=KyywLgiwtC/ZGiV/3iTZgvAwrA1qe+jUqF+B60jAGk25R7bonwmtX0VwDIbGbzwF8/ XB1jtZ+IH5n80z8pDdAGiOUN+n3I3k7t+wBiAy2AL885UKzW84TbYtqpm2YLAG0D5j89 NyPI3GUdcM0hHrO1tWR09btTJ+Od81XtDxZNTxCm76EygdKonz9pouKX+MXyfYjzcEYp +Baba+KdEug+/vXW84QHvQrIqm0dfoega4347/STdWQOtCV5ExGLcR3+GL2jGsC8PzGa CNxPaRMdBcACtpjOzzO2jfhSijO8z0a4BQgPly55Y/qpqImqEpqVGFNc1PBtlxUG0T0P BAVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d7-20020a170902cec700b001c5c632aea4si6909177plg.217.2023.09.23.09.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 09:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 292A0801B7BF; Sat, 23 Sep 2023 09:37:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbjIWQhE (ORCPT + 30 others); Sat, 23 Sep 2023 12:37:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232019AbjIWQhB (ORCPT ); Sat, 23 Sep 2023 12:37:01 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E379A19E; Sat, 23 Sep 2023 09:36:54 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.03,171,1694703600"; d="scan'208";a="180728102" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 24 Sep 2023 01:36:54 +0900 Received: from localhost.localdomain (unknown [10.226.92.12]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id CD9DC401DDFD; Sun, 24 Sep 2023 01:36:51 +0900 (JST) From: Biju Das To: Mauro Carvalho Chehab Cc: Biju Das , Hans Verkuil , Jacopo Mondi , =?utf-8?q?Uwe_Kleine-?= =?utf-8?q?K=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko Subject: [PATCH v2 2/3] media: tvp541x: Drop CONFIG_OF ifdeffery Date: Sat, 23 Sep 2023 17:36:40 +0100 Message-Id: <20230923163641.31685-3-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230923163641.31685-1-biju.das.jz@bp.renesas.com> References: <20230923163641.31685-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 23 Sep 2023 09:37:20 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777847088144550142 X-GMAIL-MSGID: 1777847088144550142 Drop of_match_ptr() from tvp514x_driver and get rid of ugly CONFIG_OF if check. This slightly increases the size of tvp514x_driver on non-OF system and shouldn't be an issue. Add mod_devicetable.h include. It also allows, in case if needed, to enumerate this device via ACPI with PRP0001 magic. Signed-off-by: Biju Das Reviewed-by: Jacopo Mondi --- v1->v2: * Added Rb tag from Jacopo. --- drivers/media/i2c/tvp514x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index 4d0ffaa312c5..569a9437ec86 100644 --- a/drivers/media/i2c/tvp514x.c +++ b/drivers/media/i2c/tvp514x.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -1190,7 +1191,6 @@ static const struct i2c_device_id tvp514x_id[] = { }; MODULE_DEVICE_TABLE(i2c, tvp514x_id); -#if IS_ENABLED(CONFIG_OF) static const struct of_device_id tvp514x_of_match[] = { { .compatible = "ti,tvp5146", .data = tvp5146_init_reg_seq }, { .compatible = "ti,tvp5146m2", .data = tvp514xm_init_reg_seq }, @@ -1199,11 +1199,10 @@ static const struct of_device_id tvp514x_of_match[] = { { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, tvp514x_of_match); -#endif static struct i2c_driver tvp514x_driver = { .driver = { - .of_match_table = of_match_ptr(tvp514x_of_match), + .of_match_table = tvp514x_of_match, .name = TVP514X_MODULE_NAME, }, .probe = tvp514x_probe, From patchwork Sat Sep 23 16:36:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 143949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp271681vqu; Sat, 23 Sep 2023 09:39:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFup2TEEbDKJjbXuuBb2kZ0Sv8zgzJdbJDWiE13jZ4mUDjvwERmeLcsFx4Fan4aRn6C5+xu X-Received: by 2002:a17:902:6bc3:b0:1c3:6724:db6f with SMTP id m3-20020a1709026bc300b001c36724db6fmr1595004plt.29.1695487159338; Sat, 23 Sep 2023 09:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695487159; cv=none; d=google.com; s=arc-20160816; b=NWEz1JkPJsZT8vvQUj02paU8Udiz6z3CM7nSx0W9kZfpPLMaZkeRhCZoml88thAaj8 Uog0OPpT5s1uyqEmdnuYM7DS5U3Uqu1T1q5NSg+oNxDE+CEfZPxQ+OVO4uMHPJgFXGw4 dn8WPJ7ZH//xyMxKA5nWeRQ6dTbZWZqt8pSNMg+KUUCVq3zEZG8cEKhP1ogs74R6q/Kh iJK+mjE7N9KD0BM2fD7jO+clmM/Mg+IWWZt95iaCP6V1Uo1mZUwO9IR00euRL8FWLHq4 jttfVxiZm37Cqo3aUOQiefMN60+sHX0G4wd2qV/OfCvUY/imxAfqmXa4IUVX0TUlPuVG pg/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sppiTJO+Cxds/PWs9hdWz7+etVOSjCjbQRmZp9Vndio=; fh=8XHVssQkGTmj2o3ixJJcc9X3fkVzFlM7u16K5Pbqh9w=; b=upR5jP5Yc/zGv8NkZTvSjlzJUztTCmWBql1X816sbvG4EeZjG5h8jA0zfN6nWmfJcg LpNZoQR/4jyRFdREUh5izKWkTMdHqYYmVCXSawAQqj26/yvaTw2SeYqzPlfg8aWIf9bE OHzhv00cYFCa0YsjkRtH0XUfuI2AL55FvvoVPnPm9Bl4XJyK5nmZ0jE9dGJjdQx8XGyx jT03DDRd7zMmMj6ZZTROBpH7/1IQ5RCqbIunrwF4a92/JuPnpJo5+55mAeXl+asVF4Gg YfAB7sV8kd9cWJGwDAl1X+w0m4Q5Ifiqyi7AdoTrdLsEc16awZMxVZIMF0sEIvKc7L2L QKJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q7-20020a170902dac700b001c44c0f8d96si182426plx.251.2023.09.23.09.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 09:39:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D266E80C5907; Sat, 23 Sep 2023 09:37:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232128AbjIWQhO (ORCPT + 30 others); Sat, 23 Sep 2023 12:37:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232063AbjIWQhK (ORCPT ); Sat, 23 Sep 2023 12:37:10 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED347192; Sat, 23 Sep 2023 09:36:58 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.03,171,1694703600"; d="scan'208";a="176995320" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 24 Sep 2023 01:36:58 +0900 Received: from localhost.localdomain (unknown [10.226.92.12]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 403DD401DDF3; Sun, 24 Sep 2023 01:36:54 +0900 (JST) From: Biju Das To: Mauro Carvalho Chehab Cc: Biju Das , Hans Verkuil , Jacopo Mondi , =?utf-8?q?Uwe_Kleine-?= =?utf-8?q?K=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko Subject: [PATCH v2 3/3] media: tvp541x: Sort header files Date: Sat, 23 Sep 2023 17:36:41 +0100 Message-Id: <20230923163641.31685-4-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230923163641.31685-1-biju.das.jz@bp.renesas.com> References: <20230923163641.31685-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 23 Sep 2023 09:37:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777847143620487371 X-GMAIL-MSGID: 1777847143620487371 Sort header files alphabetically. Suggested-by: Jacopo Mondi Signed-off-by: Biju Das --- v2: * New patch. --- drivers/media/i2c/tvp514x.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index 569a9437ec86..c37f605cb75f 100644 --- a/drivers/media/i2c/tvp514x.c +++ b/drivers/media/i2c/tvp514x.c @@ -16,24 +16,24 @@ * Prabhakar Lad */ -#include -#include #include -#include +#include #include #include -#include #include #include +#include +#include +#include +#include +#include #include -#include #include -#include -#include #include -#include -#include +#include +#include +#include #include "tvp514x_regs.h"