#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-#include <linux/types.h>
-#include <linux/module.h>
-#include <linux/moduleparam.h>
-#include <linux/kernel.h>
-#include <linux/device.h>
#include <linux/debugfs.h>
#include "greybus.h"
static inline struct es1_ap_dev *hd_to_es1(struct greybus_host_device *hd)
{
- return (struct es1_ap_dev *)(hd->hd_priv);
+ return (struct es1_ap_dev *)&hd->hd_priv;
}
static void cport_out_callback(struct urb *urb);
* 1 Control - usual USB stuff + AP -> SVC messages
* 1 Interrupt IN - SVC -> AP messages
* 1 Bulk IN - CPort data in
- * 1 Bulk OUT - CPorta data out
+ * 1 Bulk OUT - CPort data out
*/
static int ap_probe(struct usb_interface *interface,
const struct usb_device_id *id)
struct serial_struct new_serial;
unsigned int closing_wait;
unsigned int close_delay;
- int retval;
+ int retval = 0;
if (copy_from_user(&new_serial, newinfo, sizeof(new_serial)))
return -EFAULT;