Received: by 10.192.165.148 with SMTP id m20csp4650367imm; Tue, 24 Apr 2018 06:21:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+3CXHIJYRYgPuYd0LyKNNKEc/fAR28gac8j+K0mIiB3ofGgh8LYLT+AvmQ+MIBLaHA0TrU X-Received: by 10.101.77.13 with SMTP id i13mr20415811pgt.70.1524576073986; Tue, 24 Apr 2018 06:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576073; cv=none; d=google.com; s=arc-20160816; b=pC8Crc51ID6xnSguc9Zqizj8YjHquROiDFyRQEZBAtUPOp0rMZ6EgDFKf5z4qRoyMU 5Z0JFcrxU6ufp6gLpCtZBeZjxr55UvRa2R+ta3wVatYBORudc6w5ismaosnOALEFKSTC itm50ldVNI0bCQLxMPTmNrG/PZClVXyTEHl4kLsQDAHssvAq0sVjRW2A9KSj3/4vfnt6 SPo04qUcnvpwa/7KVPO0dxnjnvvZGESWEtmyUAQ27xiSil/BvoK9qTUjHrHVrjO3fk/H M8OPvoexKTp9VVRq9F1NCI/jSnzV3D3oHNiBe+fNu5tp3vP3K1EsOgzpSmAoXEC1XhZT uLyA== 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=tRmWawHkHpoBPJSSVt6YWcQosHpMeGxAau1nfZ3ISGs=; b=R6SOBgkX9NqE2lO3yX87FXlCw4MqweA5g+nHavqRZmOclQB7yiAe8gcjnmNvAdkb77 lzvBQmkUUUBiGmFiVIcluthCewSdsdDPZWEbgVUHLWOW2H/YTjqlQc1ySJVRYh2ZiTYC n6wATwPAKYlnjwUdYjpCjF9uxp24stcpdVQ1CRRHEB3Z9lWbHnoP/KWsUV00UyCWeDkt tQfQ5/LNcVa5KY77GLIqqypyKl9MVnvYeFZuFKOJZyvnAx4Ex26XIMtq620t4ivvvrL4 gHpplLntLUNZC6pnL1jIdxfBjs2I0/SJNf3skqsQ1HgPfx/HcpXaQ5I3+UwC65aGCy+0 tXUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R3TW8cky; 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 a1si13098280pfn.314.2018.04.24.06.20.59; Tue, 24 Apr 2018 06:21:13 -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=R3TW8cky; 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 S934129AbeDXNTf (ORCPT + 99 others); Tue, 24 Apr 2018 09:19:35 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:56038 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758020AbeDXNT2 (ORCPT ); Tue, 24 Apr 2018 09:19:28 -0400 Received: by mail-wm0-f66.google.com with SMTP id a8so923715wmg.5; Tue, 24 Apr 2018 06:19:27 -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=tRmWawHkHpoBPJSSVt6YWcQosHpMeGxAau1nfZ3ISGs=; b=R3TW8ckyDJpygLpxfbl+phqRO/mjHxVNZz1SzGmRRyKsmpDTFufrzHyTfpb/KPtCRn /i24e/jxkWN2R9j98l4jgntylf/S1o7SojBUTbIHLhaWXSWgZX2xwRkhm/Utp3DQTcAx O/uL83FuatQ8WRCP77uQssaylEJW+YymtF2WjIZc/a5f+IijQquUoUIBX2TUP1+1OpWj r6ZH3ytsMZMySZGXscHzQlqlryJ064+XelvsqEMIJ+l5R7k/KgZicjVJUixsuA3sL9RT ls5g3KycDkWjLY0XOOsaUPMHjn7ov0m1vhxsFDDWH8YK6Ko+680A54oIc19C8KKDe/bT CvJQ== 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=tRmWawHkHpoBPJSSVt6YWcQosHpMeGxAau1nfZ3ISGs=; b=CsZ0pnm4AoNvFuZbvBOn6F84Nmf8QZp6y0R5H5aXlWHJGcj25cAAb46tMDkzm7Gi2K XP1p7S1TXhdxkwQBgCQHnoW+AFKpUCp1EG7cQB0pPCBaGBE7fbTPyOe4FFJrpvIKyXDN HEOYQdBbrNd/2gq9HOcK+8NJsWq5xNvWcCjAgeQkSb02vNUSf0Ce/SDp1/dBNTxMrecg +H1O8avYMLe/Z578IzWKDaQmHH8M5Umg3YUChR12XMGw913a7StvhGOYINSPw43ANC3x 7fZAuL6Vzg/hA8zmGMO2b6b8emeNEkidZBKKF34Ur0cCKif+fy3U22YYVw2AjctouHY3 Ldiw== X-Gm-Message-State: ALQs6tD8TtJF3SaAxXa7gdJiG270Of9uFmpgQwj2UXHCpua5aWYDxVqk m5RiOKzZ+28FZYim6Kf0dXSN7vZe3gM= X-Received: by 10.80.132.233 with SMTP id 96mr26855051edq.235.1524575966773; Tue, 24 Apr 2018 06:19:26 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id x18sm8881176edi.58.2018.04.24.06.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:19:26 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Antti Palosaari , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH] media: cxd2820r: fix cxd2820r_get_frontend_algo()'s return type Date: Tue, 24 Apr 2018 15:19:25 +0200 Message-Id: <20180424131925.6070-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/cxd2820r_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/cxd2820r_core.c b/drivers/media/dvb-frontends/cxd2820r_core.c index f6ebbb47b..3e0d8cbd7 100644 --- a/drivers/media/dvb-frontends/cxd2820r_core.c +++ b/drivers/media/dvb-frontends/cxd2820r_core.c @@ -403,7 +403,7 @@ static enum dvbfe_search cxd2820r_search(struct dvb_frontend *fe) return DVBFE_ALGO_SEARCH_ERROR; } -static int cxd2820r_get_frontend_algo(struct dvb_frontend *fe) +static enum dvbfe_algo cxd2820r_get_frontend_algo(struct dvb_frontend *fe) { return DVBFE_ALGO_CUSTOM; } -- 2.17.0