From: Moritz Fischer <moritz.fischer@ettus.com>
To: atull@opensource.altera.com
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
Moritz Fischer <moritz.fischer@ettus.com>
Subject: [PATCH] fpga-manager: Replaced macro with static inline function
Date: Tue, 1 Mar 2016 09:39:33 -0800 [thread overview]
Message-ID: <1456853973-31261-1-git-send-email-moritz.fischer@ettus.com> (raw)
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
---
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
next reply other threads:[~2016-03-01 17:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 17:39 Moritz Fischer [this message]
2016-03-01 18:24 ` Greg KH
2016-03-01 18:47 ` atull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456853973-31261-1-git-send-email-moritz.fischer@ettus.com \
--to=moritz.fischer@ettus.com \
--cc=atull@opensource.altera.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®