From patchwork Fri Nov 11 01:40:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Even Xu X-Patchwork-Id: 9422351 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 BBCA860512 for ; Fri, 11 Nov 2016 01:39:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B729429859 for ; Fri, 11 Nov 2016 01:39:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABE232986B; Fri, 11 Nov 2016 01:39:56 +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=-6.9 required=2.0 tests=BAYES_00,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 C447629859 for ; Fri, 11 Nov 2016 01:39:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964872AbcKKBjz (ORCPT ); Thu, 10 Nov 2016 20:39:55 -0500 Received: from mga14.intel.com ([192.55.52.115]:25512 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935107AbcKKBjy (ORCPT ); Thu, 10 Nov 2016 20:39:54 -0500 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP; 10 Nov 2016 17:39:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,620,1473145200"; d="scan'208";a="29945743" Received: from ubuntu-kabylake-client-platform.sh.intel.com ([10.239.154.111]) by orsmga004.jf.intel.com with ESMTP; 10 Nov 2016 17:39:52 -0800 From: Even Xu To: jikos@kernel.org Cc: linux-input@vger.kernel.org, srinivas.pandruvada@intel.com, Even Xu Subject: [PATCH 1/3] hid: intel-ish-hid: ipc: remove unused macro Date: Fri, 11 Nov 2016 09:40:13 +0800 Message-Id: <1478828413-31687-1-git-send-email-even.xu@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The macro timed_wait_for() in utils.h isn't used in current ipc driver, so remove it for avoiding confusion. Signed-off-by: Even Xu Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ipc/utils.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/hid/intel-ish-hid/ipc/utils.h b/drivers/hid/intel-ish-hid/ipc/utils.h index 5a82123..dc39dfe 100644 --- a/drivers/hid/intel-ish-hid/ipc/utils.h +++ b/drivers/hid/intel-ish-hid/ipc/utils.h @@ -19,27 +19,6 @@ #define WAIT_FOR_CONNECT_SLICE (HZ / 10) /* - * Waits for specified event when a thread that triggers event can't signal - * Also, waits *at_least* `timeinc` after condition is satisfied - */ -#define timed_wait_for(timeinc, condition) \ - do { \ - int completed = 0; \ - do { \ - unsigned long j; \ - int done = 0; \ - \ - completed = (condition); \ - for (j = jiffies, done = 0; !done; ) { \ - schedule_timeout(timeinc); \ - if (time_is_before_eq_jiffies(j + timeinc)) \ - done = 1; \ - } \ - } while (!(completed)); \ - } while (0) - - -/* * Waits for specified event when a thread that triggers event * can't signal with timeout (use whenever we may hang) */