Received: by 10.192.165.148 with SMTP id m20csp4653003imm; Tue, 24 Apr 2018 06:23:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+PuMFfhC2IclONO0luGdDw3it630eD7pET9b+oELrI/p86PCPIP/RAlmzdvkYirdiDIwyp X-Received: by 10.99.183.77 with SMTP id w13mr20354891pgt.231.1524576222992; Tue, 24 Apr 2018 06:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576222; cv=none; d=google.com; s=arc-20160816; b=XKuFtFUst8SEz1hIUbgqrc5k4vcf+o2wX00NhdrAjzFKfM0Fin9j5Cn98P/uJhvSLj Hzawe5hBABCPDIOCfU/N86Z2FPby/5gTlA9KQSFINrs2LF/ZQ6AgH8GOxlj0P3C0LKud aDIv5gxtWIAKVXFBlvSdpSevR/TfbhRhU0cArumr+pb4r8JZp1WuGSNPaxlpVXe36+BW NP38xdhR0b0F4H80TlGstW2GLBoV7/QTEzEfMHvkuw7GIrGs2a8URgk7VYo/FkPgef6S F0LRf8yUhgwHok2XBT2k/63SjvnYFNcILirznU7VH0OlaznFjMgM+D6C+hAC4J32mQk9 bd5Q== 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=lMh1d0qwompKy/ZRPGvlXbyt6vwnUrdH92GMq3C6I/M=; b=fi940z/4VyjORZI0uzUkQHszsStl1D4bLTBWQmDpMgwC8hX2zww7WIAk8Jqa5fhgU3 Sr/SG8RmegYFnGlYmM2dUe3NH1XsNT9BJYWOhhL3o1qNR6RW20eJohStv9norM7+KpD1 j/ZTs9rMdSxjYVjv+aQC9gDObujdherJQV/hGcOV42lp/D5Gug8WqXwcjmfk+7Fe11PD 4P/Hbaz/tzOyKPknG0+A+yzN9+85HWMg7v0eh33yHUp0HusOGNJUI/GLex4r88pDaEjk jnplqDrFcMLsNWYVN/uh0PDa/ipslKyYwXnXJfz+/jb+FBRfULP3BOHQF9IArpmbQtHX jeCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IvKccJ05; 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 f10si11740302pga.389.2018.04.24.06.23.28; Tue, 24 Apr 2018 06:23:42 -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=IvKccJ05; 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 S934177AbeDXNVu (ORCPT + 99 others); Tue, 24 Apr 2018 09:21:50 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38444 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757896AbeDXNTp (ORCPT ); Tue, 24 Apr 2018 09:19:45 -0400 Received: by mail-wm0-f67.google.com with SMTP id i3so820071wmf.3; Tue, 24 Apr 2018 06:19:44 -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=lMh1d0qwompKy/ZRPGvlXbyt6vwnUrdH92GMq3C6I/M=; b=IvKccJ05IarnGbkZ6MrnyDDzw68Npss5L3WiRIrohRBsnZvLaz6f+E/xOTHxH8bGHa 2sDlELBZC2GRzyB9ehr3Op74x0xNOzDXTJTHSSHLPYgcJC3tKzal04yJ/0nzv1Qxf2QQ wwv7Anb29ilR3mEd0P43LOSpfywmGvYZDoMdLV+vav0uSUIoiMPzhabvpKx61bJaDguV 2ZUVe3Lkd2kVt57S3pZVwUdwnc5FAyfs6syOAAbN9Ht+TyKgn3hOTHr2IYmqUphijhle tVNZeXpAD6NLXWqfbAkLZHOxIxZ9hfDhJ9Z782tr0v0R2CZ/+gok1+JU1/PNYgExf81x ySzg== 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=lMh1d0qwompKy/ZRPGvlXbyt6vwnUrdH92GMq3C6I/M=; b=oLq2XqhC76fiTbakWFvT8Cet4wQGK/4G/5K6Kz2Jiv8k28K9klG7AtZzkr5CkpUzQE tU0zHj73jzgQVTN/lulWJqQhhEdFxMWeGnyzvHoEmluVoHuO6l/3buiKal+d6l8eokLJ XBdBY0zGJpbzj6TolQe9S3WEvdSd7vSutY4gHTJAjGE9+vyn9ri2SyG3gmgkRM1QOiTp iUzzNES1zyFX93vL0shSIS8LuDrLfJD+0A+5zTvbLwdjr53vx7/vChf/59ZlJ4TIN7c5 ySHNh7c7qkIjw9P6BmSG7bjeweDwxwvrQ/lZ2KG/lOol1yJR1LNzzY0JFrQ30VOWui6o I87w== X-Gm-Message-State: ALQs6tArXyu1396Trv2UCDEvelWWabGGe62OkpB5gb9018xuVu6PlUCH dSzGD/PcUCadDMHx8EXAdjTapERqWKU= X-Received: by 10.80.193.25 with SMTP id l25mr34127245edf.188.1524575984125; Tue, 24 Apr 2018 06:19:44 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id c5sm9600375ede.63.2018.04.24.06.19.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:19:43 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH] media: bt8xx: fix dst_get_tuning_algo()'s return type Date: Tue, 24 Apr 2018 15:19:40 +0200 Message-Id: <20180424131942.6320-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/pci/bt8xx/dst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/bt8xx/dst.c b/drivers/media/pci/bt8xx/dst.c index 4f0bba9e4..2e33b7236 100644 --- a/drivers/media/pci/bt8xx/dst.c +++ b/drivers/media/pci/bt8xx/dst.c @@ -1657,7 +1657,7 @@ static int dst_tune_frontend(struct dvb_frontend* fe, return 0; } -static int dst_get_tuning_algo(struct dvb_frontend *fe) +static enum dvbfe_algo dst_get_tuning_algo(struct dvb_frontend *fe) { return dst_algo ? DVBFE_ALGO_HW : DVBFE_ALGO_SW; } -- 2.17.0