From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754377AbdGJPr3 (ORCPT ); Mon, 10 Jul 2017 11:47:29 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:60973 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753593AbdGJPr0 (ORCPT ); Mon, 10 Jul 2017 11:47:26 -0400 From: Jose Abreu To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jose Abreu , Carlos Palminha , Hans Verkuil Subject: [PATCH v8 1/5] [media] cec.h: Add stub function for cec_register_cec_notifier() Date: Mon, 10 Jul 2017 16:46:51 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new stub function for cec_register_cec_notifier() so that we can still call this function when CONFIG_CEC_NOTIFIER and CONFIG_CEC_CORE are not set. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Hans Verkuil --- include/media/cec.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/media/cec.h b/include/media/cec.h index 56643b2..8357f60 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -365,6 +365,14 @@ static inline int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port) return 0; } +#ifndef CONFIG_CEC_NOTIFIER +struct cec_notifier; +static inline void cec_register_cec_notifier(struct cec_adapter *adap, + struct cec_notifier *notifier) +{ +} +#endif + #endif /** -- 1.9.1