Commit 3be03d42 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

greybus: minor checkpatch cleanups

parent 06340efb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -226,8 +226,9 @@ static int gb_init_subdevs(struct greybus_device *gdev,
	return retval;
}

static const struct greybus_module_id fake_gb_id =
	{ GREYBUS_DEVICE(0x42, 0x42) };
static const struct greybus_module_id fake_gb_id = {
	GREYBUS_DEVICE(0x42, 0x42)
};

static int create_function(struct greybus_device *gdev,
			   struct greybus_descriptor *desc, int desc_size)
+1 −2
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ static int gpio_get(struct gpio_chip *gpio, unsigned nr)
static void gpio_set(struct gpio_chip *gpio, unsigned nr, int val)
{
	// FIXME - do something there
	return;
}

int gb_gpio_probe(struct greybus_device *gdev,
+3 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ static ssize_t module_vendor_string_show(struct device *dev,
					 char *buf)
{
	struct greybus_device *gdev = to_greybus_device(dev);

	return sprintf(buf, "%s",
		       greybus_string(gdev, gdev->module_id.vendor_stringid));
}
@@ -95,6 +96,7 @@ static ssize_t module_product_string_show(struct device *dev,
					 char *buf)
{
	struct greybus_device *gdev = to_greybus_device(dev);

	return sprintf(buf, "%s",
		       greybus_string(gdev, gdev->module_id.product_stringid));
}
@@ -141,6 +143,7 @@ static ssize_t serial_number_show(struct device *dev,
				  struct device_attribute *attr, char *buf)
{
	struct greybus_device *gdev = to_greybus_device(dev);

	return sprintf(buf, "%llX\n",
		      (unsigned long long)gdev->serial_number.serial_number);
}
+1 −2
Original line number Diff line number Diff line
@@ -245,7 +245,6 @@ static int get_serial_info(struct gb_tty *gb_tty,

	if (copy_to_user(info, &tmp, sizeof(tmp)))
		return -EFAULT;
	else
	return 0;
}