Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbdGGLIm (ORCPT ); Fri, 7 Jul 2017 07:08:42 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:48346 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751438AbdGGLIl (ORCPT ); Fri, 7 Jul 2017 07:08:41 -0400 From: Jose Abreu To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jose Abreu , Carlos Palminha , Hans Verkuil Subject: [PATCH v7 1/6] [media] cec.h: Add stub function for cec_register_cec_notifier() Date: Fri, 7 Jul 2017 12:08:04 +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 Content-Length: 801 Lines: 32 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/media/cec.h b/include/media/cec.h index 56643b2..b35f154 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -365,6 +365,13 @@ static inline int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port) return 0; } +#ifndef CONFIG_CEC_NOTIFIER +static inline void cec_register_cec_notifier(struct cec_adapter *adap, + struct cec_notifier *notifier) +{ +} +#endif + #endif /** -- 1.9.1