Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ac23b34 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman
Browse files

staging: most: remove multiple blank lines



This patch removes the usage of multiple blank lines from driver modules.

Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f1c9e0ca
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@
#include "mostcore.h"
#include "networking.h"


#define MEP_HDR_LEN 8
#define MDP_HDR_LEN 16
#define MAMAC_DATA_LEN (1024 - MDP_HDR_LEN)
@@ -47,8 +46,6 @@
#define HB(value)		((u8)((u16)(value) >> 8))
#define LB(value)		((u8)(value))



#define EXTRACT_BIT_SET(bitset_name, value) \
	(((value) >> bitset_name##_SHIFT) & bitset_name##_MASK)

@@ -81,7 +78,6 @@ static struct list_head net_devices = LIST_HEAD_INIT(net_devices);
static struct spinlock list_lock;
static struct most_aim aim;


static int skb_to_mamac(const struct sk_buff *skb, struct mbo *mbo)
{
	u8 *buff = mbo->virt_address;
+0 −1
Original line number Diff line number Diff line
@@ -470,7 +470,6 @@ static struct snd_pcm_ops pcm_ops = {
	.mmap       = snd_pcm_lib_mmap_vmalloc,
};


static int split_arg_list(char *buf, char **card_name, char **pcm_format)
{
	*card_name = strsep(&buf, ".");
+0 −6
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@

#include "mostcore.h"


#define V4L2_AIM_MAX_INPUT  1

static struct most_aim aim_info;
@@ -60,11 +59,9 @@ struct aim_fh {
	u32 offs;
};


static struct list_head video_devices = LIST_HEAD_INIT(video_devices);
static struct spinlock list_lock;


static inline bool data_ready(struct most_video_dev *mdev)
{
	return !list_empty(&mdev->pending_mbos);
@@ -75,7 +72,6 @@ static inline struct mbo *get_top_mbo(struct most_video_dev *mdev)
	return list_first_entry(&mdev->pending_mbos, struct mbo, list);
}


static int aim_vdev_open(struct file *filp)
{
	int ret;
@@ -276,7 +272,6 @@ static int aim_set_format(struct most_video_dev *mdev, unsigned int cmd,
	return 0;
}


static int vidioc_querycap(struct file *file, void  *priv,
			   struct v4l2_capability *cap)
{
@@ -496,7 +491,6 @@ static void aim_unregister_videodev(struct most_video_dev *mdev)
	video_unregister_device(mdev->vdev);
}


static void aim_v4l2_dev_release(struct v4l2_device *v4l2_dev)
{
	struct most_video_dev *mdev =
+0 −9
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@
#include "dim2_reg.h"
#include <linux/stddef.h>


/*
 * The number of frames per sub-buffer for synchronous channels.
 * Allowed values: 1, 2, 4, 8, 16, 32, 64.
@@ -51,7 +50,6 @@
 */
#define DBR_MAP_SIZE 2


/* -------------------------------------------------------------------------- */
/* not configurable area */

@@ -63,7 +61,6 @@
#define DBR_SIZE  (16*1024) /* specified by IP */
#define DBR_BLOCK_SIZE  (DBR_SIZE / 32 / DBR_MAP_SIZE)


/* -------------------------------------------------------------------------- */
/* generic helper functions and macros */

@@ -81,7 +78,6 @@ static inline bool dim_on_error(u8 error_id, const char *error_message)
	return false;
}


/* -------------------------------------------------------------------------- */
/* types and local variables */

@@ -94,7 +90,6 @@ struct lld_global_vars_t {

static struct lld_global_vars_t g = { false };


/* -------------------------------------------------------------------------- */

static int dbr_get_mask_size(u16 size)
@@ -327,7 +322,6 @@ static void dim2_start_isoc_sync(u8 ch_addr, u8 idx, u32 buf_addr,
	dim2_write_ctr_mask(ADT + ch_addr, mask, adt);
}


static void dim2_clear_ctram(void)
{
	u32 ctr_addr;
@@ -530,7 +524,6 @@ static bool dim2_is_mlb_locked(void)
	       (DIMCB_IoRead(&g.dim2->MLBC0) & mask0) != 0;
}


/* -------------------------------------------------------------------------- */
/* channel help routines */

@@ -559,7 +552,6 @@ static inline bool service_channel(u8 ch_addr, u8 idx)
	return true;
}


/* -------------------------------------------------------------------------- */
/* channel init routines */

@@ -671,7 +663,6 @@ static bool channel_detach_buffers(struct dim_channel *ch, u16 buffers_number)
	return true;
}


/* -------------------------------------------------------------------------- */
/* API */

+0 −1
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ enum { CH_RX, CH_TX, NUM_CHANNELS };
#define list_first_mbo(ptr) \
	list_first_entry(ptr, struct mbo, list)


/* IRQ / Polling option */
static bool polling_req;
module_param(polling_req, bool, S_IRUGO);
Loading