From patchwork Tue Mar 6 16:39:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 10262231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 84AD66016D for ; Tue, 6 Mar 2018 16:39:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 754B92904C for ; Tue, 6 Mar 2018 16:39:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A1CD2904D; Tue, 6 Mar 2018 16:39:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24C6229052 for ; Tue, 6 Mar 2018 16:39:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753598AbeCFQjX (ORCPT ); Tue, 6 Mar 2018 11:39:23 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35085 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbeCFQjT (ORCPT ); Tue, 6 Mar 2018 11:39:19 -0500 Received: by mail-wm0-f67.google.com with SMTP id x7so23390750wmc.0 for ; Tue, 06 Mar 2018 08:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TKsUXYPELCv/HpI6O4M4YIxmo1sTkF/KgUJCSwCku4w=; b=f33MorLKMNgsSVUUiiMHPh8OFM8trSmd496bJizTvU3/E3Cn7Wr367eJMsQhCLX3Bg iaFiEewmRYPOSoFe7feRleeyzFgY9Ne/o8E7GKLnGw120FYehU5fch8h7MKl2EzwYWlc TqUzf3wmuztiPDymjNxgKMbC7+WJYrqzbVLieUL4GS+4NZLkXEh54RZ+nigU4+fADq03 e7l3BCThF8BuiVgIVbkga0FuGWDXfeGLbV56Um+oTVPGeWiFJzg5K63wbgeAxQ/VuMc2 hNtfXCIO7Y1mtqXCJtBd815E2L0gRJ7SkcdNvULonE2QQf/dnGsVEapmRCf+yMy1XexA Pj1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TKsUXYPELCv/HpI6O4M4YIxmo1sTkF/KgUJCSwCku4w=; b=XjsKOiuicMBlCmrJa6EjJafLF/lGVU3K2gb8ajw8gCa1HDhwzykBn1XQIQbWK4emo0 4GJTCXavfBBTBp2jKSxeeOLG3ggGkVVhpUviov/JA/Ym8g2CkhXD/nTGZ+OMLdcuZdVY /CFZCYYP2CONaMdsefbACqzJLQ1K5+5j3tdk23uC396GFYQ1fiRARjDdz/FlJkPMbSSr pfdyqAlnWBusRP6ytWK9GHpluvuwLdOFuzXSalhMn7vyJOx3TAwH2n0g5j1IJxj0xJ8a Ekz1NNzMZ7ApvbbuJ5IzxfnJlK8Y66CecOoLEuOaXIMOiVuSoditzt0++KdMpBcEBXCo XS7g== X-Gm-Message-State: AElRT7HWzIVLNoZs86gnztobEvmsbnI3xjGW8e2p93cVP0lfjyaiE+Nz q8s1wW++x01WE7I1dSDODh1ZPQ== X-Google-Smtp-Source: AG47ELt87+0Yli5OYtTHNPFUJTuVtC8luMyi6rCuXbWMYTKWYoCRaPMWGpBXHbjmhAqIgzXX5B3SKw== X-Received: by 10.28.167.208 with SMTP id q199mr11729949wme.29.1520354358506; Tue, 06 Mar 2018 08:39:18 -0800 (PST) Received: from dvbdev.wuest.de (ip-84-118-193-200.unity-media.net. [84.118.193.200]) by smtp.gmail.com with ESMTPSA id 69sm9978573wmp.36.2018.03.06.08.39.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 08:39:17 -0800 (PST) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: jasmin@anw.at Subject: [PATCH 2/4] [media] ngene: add I2C_FUNC_I2C to the I2C interface functionality Date: Tue, 6 Mar 2018 17:39:11 +0100 Message-Id: <20180306163913.1519-3-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180306163913.1519-1-d.scheller.oss@gmail.com> References: <20180306163913.1519-1-d.scheller.oss@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Scheller Report I2C_FUNC_I2C in .functionality() aswell. The I2C interface can handle this fine and even is required for all I2C client drivers that utilise the regmap API which are used from within the ngene driver. Signed-off-by: Daniel Scheller Signed-off-by: Jasmin Jessich --- drivers/media/pci/ngene/ngene-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ngene/ngene-i2c.c b/drivers/media/pci/ngene/ngene-i2c.c index 3004947f300b..092d46c2a3a9 100644 --- a/drivers/media/pci/ngene/ngene-i2c.c +++ b/drivers/media/pci/ngene/ngene-i2c.c @@ -147,7 +147,7 @@ static int ngene_i2c_master_xfer(struct i2c_adapter *adapter, static u32 ngene_i2c_functionality(struct i2c_adapter *adap) { - return I2C_FUNC_SMBUS_EMUL; + return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; } static const struct i2c_algorithm ngene_i2c_algo = {