* [1/8] usb: pd: include kernel.h
@ 2018-06-27 15:19 Heikki Krogerus
0 siblings, 0 replies; 2+ messages in thread
From: Heikki Krogerus @ 2018-06-27 15:19 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Guenter Roeck, Hans de Goede, Jun Li, Mats Karrman, linux-usb,
linux-kernel
This makes life a bit easier for the drivers that include
pd.h. All pd_header_*_le() inline functions defined in pd.h
call le16_to_cpu(), and all *_LE() macros in pd.h call
cpu_to_le16().
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
---
include/linux/usb/pd.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/usb/pd.h b/include/linux/usb/pd.h
index 09b570feb297..f2162e0fe531 100644
--- a/include/linux/usb/pd.h
+++ b/include/linux/usb/pd.h
@@ -15,6 +15,7 @@
#ifndef __LINUX_USB_PD_H
#define __LINUX_USB_PD_H
+#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/usb/typec.h>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [1/8] usb: pd: include kernel.h
@ 2018-07-09 18:58 Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2018-07-09 18:58 UTC (permalink / raw)
To: Heikki Krogerus
Cc: Greg Kroah-Hartman, Hans de Goede, Jun Li, Mats Karrman,
linux-usb, linux-kernel
On Wed, Jun 27, 2018 at 06:19:46PM +0300, Heikki Krogerus wrote:
> This makes life a bit easier for the drivers that include
> pd.h. All pd_header_*_le() inline functions defined in pd.h
> call le16_to_cpu(), and all *_LE() macros in pd.h call
> cpu_to_le16().
>
> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> include/linux/usb/pd.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/usb/pd.h b/include/linux/usb/pd.h
> index 09b570feb297..f2162e0fe531 100644
> --- a/include/linux/usb/pd.h
> +++ b/include/linux/usb/pd.h
> @@ -15,6 +15,7 @@
> #ifndef __LINUX_USB_PD_H
> #define __LINUX_USB_PD_H
>
> +#include <linux/kernel.h>
What is more appropriate ? This or asm/byteorder.h ?
Guenter
> #include <linux/types.h>
> #include <linux/usb/typec.h>
>
> --
> 2.18.0
>
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-09 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 18:58 [1/8] usb: pd: include kernel.h Guenter Roeck
-- strict thread matches above, loose matches on Subject: below --
2018-06-27 15:19 Heikki Krogerus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).