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

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
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "mostcore.h" #include "mostcore.h"
#include "networking.h" #include "networking.h"
#define MEP_HDR_LEN 8 #define MEP_HDR_LEN 8
#define MDP_HDR_LEN 16 #define MDP_HDR_LEN 16
#define MAMAC_DATA_LEN (1024 - MDP_HDR_LEN) #define MAMAC_DATA_LEN (1024 - MDP_HDR_LEN)
...@@ -47,8 +46,6 @@ ...@@ -47,8 +46,6 @@
#define HB(value) ((u8)((u16)(value) >> 8)) #define HB(value) ((u8)((u16)(value) >> 8))
#define LB(value) ((u8)(value)) #define LB(value) ((u8)(value))
#define EXTRACT_BIT_SET(bitset_name, value) \ #define EXTRACT_BIT_SET(bitset_name, value) \
(((value) >> bitset_name##_SHIFT) & bitset_name##_MASK) (((value) >> bitset_name##_SHIFT) & bitset_name##_MASK)
...@@ -81,7 +78,6 @@ static struct list_head net_devices = LIST_HEAD_INIT(net_devices); ...@@ -81,7 +78,6 @@ static struct list_head net_devices = LIST_HEAD_INIT(net_devices);
static struct spinlock list_lock; static struct spinlock list_lock;
static struct most_aim aim; static struct most_aim aim;
static int skb_to_mamac(const struct sk_buff *skb, struct mbo *mbo) static int skb_to_mamac(const struct sk_buff *skb, struct mbo *mbo)
{ {
u8 *buff = mbo->virt_address; u8 *buff = mbo->virt_address;
......
...@@ -470,7 +470,6 @@ static struct snd_pcm_ops pcm_ops = { ...@@ -470,7 +470,6 @@ static struct snd_pcm_ops pcm_ops = {
.mmap = snd_pcm_lib_mmap_vmalloc, .mmap = snd_pcm_lib_mmap_vmalloc,
}; };
static int split_arg_list(char *buf, char **card_name, char **pcm_format) static int split_arg_list(char *buf, char **card_name, char **pcm_format)
{ {
*card_name = strsep(&buf, "."); *card_name = strsep(&buf, ".");
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "mostcore.h" #include "mostcore.h"
#define V4L2_AIM_MAX_INPUT 1 #define V4L2_AIM_MAX_INPUT 1
static struct most_aim aim_info; static struct most_aim aim_info;
...@@ -60,11 +59,9 @@ struct aim_fh { ...@@ -60,11 +59,9 @@ struct aim_fh {
u32 offs; u32 offs;
}; };
static struct list_head video_devices = LIST_HEAD_INIT(video_devices); static struct list_head video_devices = LIST_HEAD_INIT(video_devices);
static struct spinlock list_lock; static struct spinlock list_lock;
static inline bool data_ready(struct most_video_dev *mdev) static inline bool data_ready(struct most_video_dev *mdev)
{ {
return !list_empty(&mdev->pending_mbos); return !list_empty(&mdev->pending_mbos);
...@@ -75,7 +72,6 @@ static inline struct mbo *get_top_mbo(struct most_video_dev *mdev) ...@@ -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); return list_first_entry(&mdev->pending_mbos, struct mbo, list);
} }
static int aim_vdev_open(struct file *filp) static int aim_vdev_open(struct file *filp)
{ {
int ret; int ret;
...@@ -276,7 +272,6 @@ static int aim_set_format(struct most_video_dev *mdev, unsigned int cmd, ...@@ -276,7 +272,6 @@ static int aim_set_format(struct most_video_dev *mdev, unsigned int cmd,
return 0; return 0;
} }
static int vidioc_querycap(struct file *file, void *priv, static int vidioc_querycap(struct file *file, void *priv,
struct v4l2_capability *cap) struct v4l2_capability *cap)
{ {
...@@ -496,7 +491,6 @@ static void aim_unregister_videodev(struct most_video_dev *mdev) ...@@ -496,7 +491,6 @@ static void aim_unregister_videodev(struct most_video_dev *mdev)
video_unregister_device(mdev->vdev); video_unregister_device(mdev->vdev);
} }
static void aim_v4l2_dev_release(struct v4l2_device *v4l2_dev) static void aim_v4l2_dev_release(struct v4l2_device *v4l2_dev)
{ {
struct most_video_dev *mdev = struct most_video_dev *mdev =
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "dim2_reg.h" #include "dim2_reg.h"
#include <linux/stddef.h> #include <linux/stddef.h>
/* /*
* The number of frames per sub-buffer for synchronous channels. * The number of frames per sub-buffer for synchronous channels.
* Allowed values: 1, 2, 4, 8, 16, 32, 64. * Allowed values: 1, 2, 4, 8, 16, 32, 64.
...@@ -51,7 +50,6 @@ ...@@ -51,7 +50,6 @@
*/ */
#define DBR_MAP_SIZE 2 #define DBR_MAP_SIZE 2
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* not configurable area */ /* not configurable area */
...@@ -63,7 +61,6 @@ ...@@ -63,7 +61,6 @@
#define DBR_SIZE (16*1024) /* specified by IP */ #define DBR_SIZE (16*1024) /* specified by IP */
#define DBR_BLOCK_SIZE (DBR_SIZE / 32 / DBR_MAP_SIZE) #define DBR_BLOCK_SIZE (DBR_SIZE / 32 / DBR_MAP_SIZE)
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* generic helper functions and macros */ /* generic helper functions and macros */
...@@ -81,7 +78,6 @@ static inline bool dim_on_error(u8 error_id, const char *error_message) ...@@ -81,7 +78,6 @@ static inline bool dim_on_error(u8 error_id, const char *error_message)
return false; return false;
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* types and local variables */ /* types and local variables */
...@@ -94,7 +90,6 @@ struct lld_global_vars_t { ...@@ -94,7 +90,6 @@ struct lld_global_vars_t {
static struct lld_global_vars_t g = { false }; static struct lld_global_vars_t g = { false };
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
static int dbr_get_mask_size(u16 size) 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, ...@@ -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); dim2_write_ctr_mask(ADT + ch_addr, mask, adt);
} }
static void dim2_clear_ctram(void) static void dim2_clear_ctram(void)
{ {
u32 ctr_addr; u32 ctr_addr;
...@@ -530,7 +524,6 @@ static bool dim2_is_mlb_locked(void) ...@@ -530,7 +524,6 @@ static bool dim2_is_mlb_locked(void)
(DIMCB_IoRead(&g.dim2->MLBC0) & mask0) != 0; (DIMCB_IoRead(&g.dim2->MLBC0) & mask0) != 0;
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* channel help routines */ /* channel help routines */
...@@ -559,7 +552,6 @@ static inline bool service_channel(u8 ch_addr, u8 idx) ...@@ -559,7 +552,6 @@ static inline bool service_channel(u8 ch_addr, u8 idx)
return true; return true;
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* channel init routines */ /* channel init routines */
...@@ -671,7 +663,6 @@ static bool channel_detach_buffers(struct dim_channel *ch, u16 buffers_number) ...@@ -671,7 +663,6 @@ static bool channel_detach_buffers(struct dim_channel *ch, u16 buffers_number)
return true; return true;
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* API */ /* API */
......
...@@ -35,7 +35,6 @@ enum { CH_RX, CH_TX, NUM_CHANNELS }; ...@@ -35,7 +35,6 @@ enum { CH_RX, CH_TX, NUM_CHANNELS };
#define list_first_mbo(ptr) \ #define list_first_mbo(ptr) \
list_first_entry(ptr, struct mbo, list) list_first_entry(ptr, struct mbo, list)
/* IRQ / Polling option */ /* IRQ / Polling option */
static bool polling_req; static bool polling_req;
module_param(polling_req, bool, S_IRUGO); module_param(polling_req, bool, S_IRUGO);
......
...@@ -985,7 +985,6 @@ struct most_dci_attribute { ...@@ -985,7 +985,6 @@ struct most_dci_attribute {
}; };
#define to_dci_attr(a) container_of(a, struct most_dci_attribute, attr) #define to_dci_attr(a) container_of(a, struct most_dci_attribute, attr)
/** /**
* dci_attr_show - show function for dci object * dci_attr_show - show function for dci object
* @kobj: pointer to kobject * @kobj: pointer to kobject
......
...@@ -331,7 +331,6 @@ static ssize_t show_channel_starving(struct most_c_obj *c, ...@@ -331,7 +331,6 @@ static ssize_t show_channel_starving(struct most_c_obj *c,
return snprintf(buf, PAGE_SIZE, "%d\n", c->is_starving); return snprintf(buf, PAGE_SIZE, "%d\n", c->is_starving);
} }
#define create_show_channel_attribute(val) \ #define create_show_channel_attribute(val) \
static MOST_CHNL_ATTR(val, S_IRUGO, show_##val, NULL) static MOST_CHNL_ATTR(val, S_IRUGO, show_##val, NULL)
...@@ -493,7 +492,6 @@ create_channel_attribute(set_datatype); ...@@ -493,7 +492,6 @@ create_channel_attribute(set_datatype);
create_channel_attribute(set_subbuffer_size); create_channel_attribute(set_subbuffer_size);
create_channel_attribute(set_packets_per_xact); create_channel_attribute(set_packets_per_xact);
/** /**
* most_channel_def_attrs - array of default attributes of channel object * most_channel_def_attrs - array of default attributes of channel object
*/ */
...@@ -720,7 +718,6 @@ static struct kobj_type most_inst_ktype = { ...@@ -720,7 +718,6 @@ static struct kobj_type most_inst_ktype = {
static struct kset *most_inst_kset; static struct kset *most_inst_kset;
/** /**
* create_most_inst_obj - creates an instance object * create_most_inst_obj - creates an instance object
* @name: name of the object to be created * @name: name of the object to be created
...@@ -784,7 +781,6 @@ struct most_aim_obj { ...@@ -784,7 +781,6 @@ struct most_aim_obj {
static struct list_head aim_list; static struct list_head aim_list;
/** /**
* struct most_aim_attribute - to access the attributes of AIM object * struct most_aim_attribute - to access the attributes of AIM object
* @attr: attributes of an AIM * @attr: attributes of an AIM
...@@ -1120,7 +1116,6 @@ static void destroy_most_aim_obj(struct most_aim_obj *p) ...@@ -1120,7 +1116,6 @@ static void destroy_most_aim_obj(struct most_aim_obj *p)
kobject_put(&p->kobj); kobject_put(&p->kobj);
} }
/* ___ ___ /* ___ ___
* ___C O R E___ * ___C O R E___
*/ */
...@@ -1449,7 +1444,6 @@ struct mbo *most_get_mbo(struct most_interface *iface, int id, ...@@ -1449,7 +1444,6 @@ struct mbo *most_get_mbo(struct most_interface *iface, int id,
} }
EXPORT_SYMBOL_GPL(most_get_mbo); EXPORT_SYMBOL_GPL(most_get_mbo);
/** /**
* most_put_mbo - return buffer to pool * most_put_mbo - return buffer to pool
* @mbo: buffer object * @mbo: buffer object
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment