Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234AbcCARju (ORCPT ); Tue, 1 Mar 2016 12:39:50 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35316 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750996AbcCARjr (ORCPT ); Tue, 1 Mar 2016 12:39:47 -0500 From: Moritz Fischer To: atull@opensource.altera.com Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Moritz Fischer Subject: [PATCH] fpga-manager: Replaced macro with static inline function Date: Tue, 1 Mar 2016 09:39:33 -0800 Message-Id: <1456853973-31261-1-git-send-email-moritz.fischer@ettus.com> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 702 Lines: 23 Signed-off-by: Moritz Fischer --- include/linux/fpga/fpga-mgr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h index 0940bf4..8064f1b 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h @@ -107,7 +107,10 @@ struct fpga_manager { void *priv; }; -#define to_fpga_manager(d) container_of(d, struct fpga_manager, dev) +static inline struct fpga_manager *to_fpga_manager(struct device *d) +{ + return container_of(d, struct fpga_manager, dev); +} int fpga_mgr_buf_load(struct fpga_manager *mgr, u32 flags, const char *buf, size_t count); -- 2.4.3