From patchwork Sun Nov 22 09:07:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 7675761 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2974B9F1C2 for ; Sun, 22 Nov 2015 09:08:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C31D20662 for ; Sun, 22 Nov 2015 09:08:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 770A520660 for ; Sun, 22 Nov 2015 09:08:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751453AbbKVJIP (ORCPT ); Sun, 22 Nov 2015 04:08:15 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:34480 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbbKVJIJ (ORCPT ); Sun, 22 Nov 2015 04:08:09 -0500 Received: by wmvv187 with SMTP id v187so123340172wmv.1 for ; Sun, 22 Nov 2015 01:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W++QmAClAe9Ce/qQSvHnxOCWkMydJcrM/b3YrcDRscE=; b=l43uF4Aagi/VUsWYj6Ryh2/c66ajbnpE6uJ7PaEjFEL47ydi24y6zgbHdCsJihaw6o 76vh5bYL+ZbNGQNUt/Gm0xVQGaldkW5Axu0DgdW1NmfA1h/IXzOsG8PD6IQ7TKfvImyT 5JeTV8G46Nbp1kbRfzzVSo4bU588CN2zzDjjnC1MBsmPAYlGYAedM1WT23d4FCdy+dGZ 4jqTLFukNGO7cL6+bnYcng0JCtAvTr1qWSrP2J7CFhMTE2MKriDWsz8OdyElQRK91++Y 4Pk1oLcKXgCP+6MDeesFOsHAovIh0ZP39gl5isYdoT7CvQFReK9hKWZ7shkytkmHNTqo x1Dw== X-Received: by 10.194.90.79 with SMTP id bu15mr28365200wjb.36.1448183288147; Sun, 22 Nov 2015 01:08:08 -0800 (PST) Received: from tipsey.3.home (188.31.153.139.threembb.co.uk. [188.31.153.139]) by smtp.gmail.com with ESMTPSA id c13sm7696650wmd.14.2015.11.22.01.08.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Nov 2015 01:08:07 -0800 (PST) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 2/8] staging: vt6655: set_channel replace void handler. Date: Sun, 22 Nov 2015 09:07:16 +0000 Message-Id: <1448183242-3397-2-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1448183242-3397-1-git-send-email-tvboxspy@gmail.com> References: <1448183242-3397-1-git-send-email-tvboxspy@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replace with struct vnt_private. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/channel.c | 3 +-- drivers/staging/vt6655/channel.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c index 6edccb42..d1c9116 100644 --- a/drivers/staging/vt6655/channel.c +++ b/drivers/staging/vt6655/channel.c @@ -174,9 +174,8 @@ void vnt_init_bands(struct vnt_private *priv) * Return Value: true if succeeded; false if failed. * */ -bool set_channel(void *pDeviceHandler, struct ieee80211_channel *ch) +bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) { - struct vnt_private *priv = pDeviceHandler; bool bResult = true; if (priv->byCurrentCh == ch->hw_value) diff --git a/drivers/staging/vt6655/channel.h b/drivers/staging/vt6655/channel.h index e2be6fc..2d613e7 100644 --- a/drivers/staging/vt6655/channel.h +++ b/drivers/staging/vt6655/channel.h @@ -27,6 +27,6 @@ void vnt_init_bands(struct vnt_private *); -bool set_channel(void *pDeviceHandler, struct ieee80211_channel *); +bool set_channel(struct vnt_private *, struct ieee80211_channel *); #endif /* _CHANNEL_H_ */