Received: by 10.192.165.148 with SMTP id m20csp4650207imm; Tue, 24 Apr 2018 06:21:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/jSHQcvc3uYKm45uHiqczuD4dwnbYm92alc2rO85qEoLO8XrEwXEO4W6X6pW1TY1KqjplA X-Received: by 10.98.24.214 with SMTP id 205mr23412836pfy.242.1524576063775; Tue, 24 Apr 2018 06:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576063; cv=none; d=google.com; s=arc-20160816; b=gHJhYcJ5Ma5F2sd8/KlxHn8dNWyLSZVmlLFvDl2uXf4PC46W1I3PCwr0jFLv/+UIsD o9OTqWXVVnva5a5FVVHhaXBRnHb+P6ihSR4Hno9PL4Onr0R9vk4AQcdtHDdeDVpml5Uo j20eMhtZsCjIazO/3Vy/Ix23gwyoZ06CYDvRw6N2IYBUDlyxRJg22Hn5FdlO8VdevYer dI5fjSpqQZb3ylVCtW231w/OAaWLLxUqF0IdT0zySrfEJZdr4pUcNLV6ZwAJST4Ai+1A /EDGoD3YI+OiazV8Tf2R1wbCS1zea9ddEmSZBLR9nyM/V6BvnSi2SJzyjGN+p7a30ZPH M9Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9dexLmGQ3C1ucXF8QKOGf3/TihwW9EGDAIZ7Ho+Xh7I=; b=sFKVzZSIgViMqdherhwv+AVXLUXQMdRr3wp7x7+jb9kj30R1T24i3LFoaKVcyLLRxw AichwwMZXvVIV9OiHL7E8jm/vEX3SpzTsDoOsllGCFshWltmvfm0Fh7GCYfDw7xgUGpa U0DX22S3h5f986Pbpthtr8kdMlaOmgQY9vP1tHhYxISQoBSVZmQzEDSVPHdbzDVIbCQk 90ZZBmSYzaFVnWxheVAufq3nTQ5wUsw5JwnbeR6Ursf6nlqeo/+RBSn8yZWD6QYImD26 ZWv+gOLuDqkBS2Wmys+C3iKm4WMa1J5Qs6GABKqXZkc4Lx0IEwJMT4VJ+rJTuD74vY2k SLeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cpRdsbcn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si14164777plt.304.2018.04.24.06.20.49; Tue, 24 Apr 2018 06:21:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cpRdsbcn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758022AbeDXNT1 (ORCPT + 99 others); Tue, 24 Apr 2018 09:19:27 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53084 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757992AbeDXNTV (ORCPT ); Tue, 24 Apr 2018 09:19:21 -0400 Received: by mail-wm0-f68.google.com with SMTP id w195so918770wmw.2; Tue, 24 Apr 2018 06:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9dexLmGQ3C1ucXF8QKOGf3/TihwW9EGDAIZ7Ho+Xh7I=; b=cpRdsbcnkrCDUB5eycGOa1t0x5hxFS3q5GN0Ybj9lqZwaAIEkRF4QDdjJrZxdHILsH qhf6IdBoG3rX2dU1KV8yJk+989LpKwrrruN2Yv4wKXi5QREFdN3GAYrgdV9njWZJRMi6 zUEkJK4QPGaQaoWAgZ16v4Tlx+cYm08J1qdcXFFPZklHNu2NYFPS9LtFPeZOINC+bVAZ IcZw84SBQHGN8ov0FLdNphKAGM8RFzDBzLvpFb9trtsIugkSza6MDdlQD/ZeJG+6qfkh muVNlWhjg6v6CZeWV6lPMfpzMw2DQPPnQ6qRPt1EfpkIcmJbBdJh6X3xVaE9S9a2+JZ2 NP9Q== 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; bh=9dexLmGQ3C1ucXF8QKOGf3/TihwW9EGDAIZ7Ho+Xh7I=; b=OfyQw0aNz8y+Ofg72WL9M+lZVcgMXieRri1YrD8ch8crFDBaX0WRe9zWS295LXXFvt XoP6P7Ri9Vvt1gH+2p7ROKhjxo8A90ftrrgiv9KFkqeQnPu1FoeHkSSH/wcy1rSG7rOA NBAk7RAI3HmCFvosVW/uUmYwd0Mc5oFEO43a4qBqS3bli5/I/+5aCyJb2Z/BVJHJrcsd 2KBJoydV4uIggGrY/KI5rX8QuuSxaXnDYevMtW5YLyZtsH+/KJ9xdWpEovgtN2ooHY7F n4Ys82AK94W1iv+McsTdfQb8ac700wldBu7mScutwyyN8TH2f6jkDXsnMXBvrX7d0nLh 5nOA== X-Gm-Message-State: ALQs6tDCW4yXWO4llYSbpVjCeB42skcBxiTh1Vk68M4+RcvMos6T1ysU JwPSYbkcW3pxraXSagGQ5FAn6QFhoyM= X-Received: by 10.80.194.137 with SMTP id o9mr24880875edf.156.1524575959755; Tue, 24 Apr 2018 06:19:19 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id c15sm1466710edr.78.2018.04.24.06.19.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:19:19 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Jemma Denson , Patrick Boettcher , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH] media: cx24120: fix cx24120_get_algo()'s return type Date: Tue, 24 Apr 2018 15:19:18 +0200 Message-Id: <20180424131918.5969-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method dvb_frontend_ops::get_frontend_algo() is defined as returning an 'enum dvbfe_algo', but the implementation in this driver returns an 'int'. Fix this by returning 'enum dvbfe_algo' in this driver too. Signed-off-by: Luc Van Oostenryck --- drivers/media/dvb-frontends/cx24120.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/cx24120.c b/drivers/media/dvb-frontends/cx24120.c index 810f68acd..ccbabdae6 100644 --- a/drivers/media/dvb-frontends/cx24120.c +++ b/drivers/media/dvb-frontends/cx24120.c @@ -1491,7 +1491,7 @@ static int cx24120_tune(struct dvb_frontend *fe, bool re_tune, return cx24120_read_status(fe, status); } -static int cx24120_get_algo(struct dvb_frontend *fe) +static enum dvbfe_algo cx24120_get_algo(struct dvb_frontend *fe) { return DVBFE_ALGO_HW; } -- 2.17.0