From: Tomas Winkler <tomas.winkler@intel.com>
To: gregkh@linuxfoundation.org
Cc: arnd@arndb.de, linux-kernel@vger.kernel.org,
Tomas Winkler <tomas.winkler@intel.com>
Subject: [RESEND char-misc-next 08/18] mei: move mei_hbm_hdr function from hbm.h the hbm.c
Date: Mon, 29 Sep 2014 16:31:40 +0300 [thread overview]
Message-ID: <1411997510-29094-9-git-send-email-tomas.winkler@intel.com> (raw)
In-Reply-To: <1411997510-29094-1-git-send-email-tomas.winkler@intel.com>
mei_hbm_hder helper function is only used in hbm.c
so there is no need to define it in a header file
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
drivers/misc/mei/hbm.c | 16 ++++++++++++++++
drivers/misc/mei/hbm.h | 9 ---------
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index 24534ff..271c240 100644
--- a/drivers/misc/mei/hbm.c
+++ b/drivers/misc/mei/hbm.c
@@ -134,6 +134,22 @@ void mei_hbm_reset(struct mei_device *dev)
}
/**
+ * mei_hbm_hdr - construct hbm header
+ *
+ * @hdr: hbm header
+ * @length: payload length
+ */
+
+static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length)
+{
+ hdr->host_addr = 0;
+ hdr->me_addr = 0;
+ hdr->length = length;
+ hdr->msg_complete = 1;
+ hdr->reserved = 0;
+}
+
+/**
* mei_hbm_cl_hdr - construct client hbm header
*
* @cl: client
diff --git a/drivers/misc/mei/hbm.h b/drivers/misc/mei/hbm.h
index efcb0d4..b7cd3d8 100644
--- a/drivers/misc/mei/hbm.h
+++ b/drivers/misc/mei/hbm.h
@@ -44,15 +44,6 @@ const char *mei_hbm_state_str(enum mei_hbm_state state);
int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
-static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length)
-{
- hdr->host_addr = 0;
- hdr->me_addr = 0;
- hdr->length = length;
- hdr->msg_complete = 1;
- hdr->reserved = 0;
-}
-
void mei_hbm_idle(struct mei_device *dev);
void mei_hbm_reset(struct mei_device *dev);
int mei_hbm_start_req(struct mei_device *dev);
--
1.9.3
next prev parent reply other threads:[~2014-09-29 13:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 13:31 [RESEND char-misc-next 00/18] mei: resend of rebased patches Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 01/18] mei: add hbm and pg state in devstate debugfs print Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 02/18] mei: debugfs: adjust print buffer Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 03/18] mei: debugfs: add single buffer indicator Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 04/18] mei: pg: fix cat and paste error in comments Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 05/18] mei: fix style warning: Missing a blank line after declarations Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 06/18] mei: nfc: fix style warning Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 07/18] mei: kill error message for allocation failure Tomas Winkler
2014-09-29 13:31 ` Tomas Winkler [this message]
2014-09-29 13:31 ` [RESEND char-misc-next 09/18] mei: push all standard settings into mei_device_init Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 10/18] mei: get rid of most of the pci dependencies in mei Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 11/18] mei: move fw_status back to hw ops handlers Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 12/18] mei: remove the reference to pdev from mei_device Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 13/18] mei: push pci cfg structure me hw Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 14/18] mei: remove include to pci header from mei module files Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 15/18] mei: trivial: fix errors in prints in comments Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 16/18] mei: drop me_client_presentation_num Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 17/18] mei: fix KDoc documentation formatting Tomas Winkler
2014-09-29 13:31 ` [RESEND char-misc-next 18/18] mei: fix kernel-doc warnings Tomas Winkler
2014-09-29 15:56 ` [RESEND char-misc-next 00/18] mei: resend of rebased patches Greg KH
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=1411997510-29094-9-git-send-email-tomas.winkler@intel.com \
--to=tomas.winkler@intel.com \
--cc=arnd@arndb.de \
--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®