Commit 75b2d9a1 authored by Ramesh Gupta's avatar Ramesh Gupta Committed by Hari Kanigeri

OMAP4 Syslink ducati driver coding format fix

This patch fixes coding style issues and compile time
warnings.
Signed-off-by: default avatarRamesh Gupta G <grgupta@ti.com>
parent 25b97921
......@@ -32,7 +32,8 @@
*/
#define IPC_BUF_ALIGN 128
#define IPC_ALIGN(x, y) (unsigned long int)((unsigned long int)((x + y - 1) / y) * y)
#define IPC_ALIGN(x, y) (unsigned long int)\
((unsigned long int)((x + y - 1) / y) * y)
#define NOTIFYDUCATI_DRIVERNAME "NOTIFY_DUCATIDRV"
......@@ -177,10 +178,10 @@ int notify_ducatidrv_destroy(void);
/* Function to create the ducati driver handle and performs initialization. */
struct notify_driver_object* notify_ducatidrv_create(char *driver_name,
struct notify_driver_object *notify_ducatidrv_create(char *driver_name,
const struct notify_ducatidrv_params *params);
/* Function to delete the ducati driver handle and performs de initialization. */
/* Function to delete the ducati driver handle and performs de initialization.*/
int notify_ducatidrv_delete(struct notify_driver_object **handle_ptr);
/*Function to open the ducati driver */
......
......@@ -83,23 +83,23 @@ struct notify_ducatidrv_cmdargs {
* @brief Command arguments for NotifyDriverShm_getConfig
*/
struct notify_ducatidrv_cmdargs_getconfig {
struct notify_ducatidrv_cmdargs common_args;
struct notify_ducatidrv_config *cfg;
struct notify_ducatidrv_cmdargs common_args;
struct notify_ducatidrv_config *cfg;
};
/*
* brief Command arguments for NotifyDriverShm_setup
*/
struct notify_ducatidrv_cmdargs_setup {
struct notify_ducatidrv_cmdargs common_args;
struct notify_ducatidrv_config *cfg;
struct notify_ducatidrv_cmdargs common_args;
struct notify_ducatidrv_config *cfg;
};
/*
* brief Command arguments for NotifyDriverShm_destroy
*/
struct notify_ducatidrv_cmdargs_destroy {
struct notify_ducatidrv_cmdargs common_args;
struct notify_ducatidrv_cmdargs common_args;
} ;
/*
......@@ -107,9 +107,9 @@ struct notify_ducatidrv_cmdargs_destroy {
*/
struct notify_ducatidrv_cmdargs_paramsinit {
struct notify_ducatidrv_cmdargs common_args;
struct notify_driver_object * handle;
struct notify_ducatidrv_params * params;
struct notify_ducatidrv_cmdargs common_args;
struct notify_driver_object *handle;
struct notify_ducatidrv_params *params;
};
/*!
......@@ -117,26 +117,26 @@ struct notify_ducatidrv_cmdargs_paramsinit {
*/
struct notify_ducatidrv_cmdargs_create {
struct notify_ducatidrv_cmdargs common_args;
char driverName [NOTIFY_MAX_NAMELEN];
struct notify_ducatidrv_params params;
struct notify_driver_object * handle;
char driverName[NOTIFY_MAX_NAMELEN];
struct notify_ducatidrv_params params;
struct notify_driver_object *handle;
};
/*
* brief Command arguments for NotifyDriverShm_delete
*/
struct notify_ducatidrv_cmdargs_delete {
struct notify_ducatidrv_cmdargs common_args;
struct notify_driver_object * handle;
struct notify_ducatidrv_cmdargs common_args;
struct notify_driver_object *handle;
};
/*
* brief Command arguments for NotifyDriverShm_open
*/
struct notify_ducatidrv_cmdargs_open {
struct notify_ducatidrv_cmdargs common_args;
char * driverName;
struct notify_driver_object * handle;
struct notify_ducatidrv_cmdargs common_args;
char *driverName;
struct notify_driver_object *handle;
};
......@@ -144,8 +144,8 @@ struct notify_ducatidrv_cmdargs_open {
* brief Command arguments for NotifyDriverShm_close
*/
struct notify_ducatidrv_cmdargs_close {
struct notify_ducatidrv_cmdargs common_args;
struct notify_driver_object * handle;
struct notify_ducatidrv_cmdargs common_args;
struct notify_driver_object *handle;
};
......
......@@ -28,6 +28,7 @@
#include <syslink/notify_driverdefs.h>
#include <syslink/notify_ducatidriver.h>
#include <syslink/notify_dispatcher.h>
#include <syslink/multiproc.h>
......
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