Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
platform: msm_shared: Move common data types to header file
Browse files Browse the repository at this point in the history
Common data types are defined in multiple files, move all the data types
to sys/types.h header file instead of repeating in the driver header
files

Change-Id: Iac064d6446a81d04e80e143c5b34c7c689e30f11
  • Loading branch information
Channagoud Kadabi authored and Gerrit - the friendly Code Review server committed Oct 12, 2015
1 parent f90c897 commit 66ea6fd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
17 changes: 17 additions & 0 deletions include/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,23 @@ typedef int kobj_id;

typedef unsigned long time_t;
typedef unsigned long long bigtime_t;
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
typedef uint64_t uint64;
typedef int boolean;
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef bool boolean;

#ifndef TRUE
#define TRUE true
#endif
#ifndef FALSE
#define FALSE false
#endif

#define INFINITE_TIME ULONG_MAX

#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
Expand Down
7 changes: 3 additions & 4 deletions platform/msm_shared/include/crypto_hash.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down Expand Up @@ -29,13 +29,12 @@
#ifndef __CRYPTO_HASH_H__
#define __CRYPYO_HASH_H__

#include <sys/types.h>

#ifndef NULL
#define NULL 0
#endif

#define TRUE 1
#define FALSE 0

#define SHA256_INIT_VECTOR_SIZE 8
#define SHA1_INIT_VECTOR_SIZE 5

Expand Down
8 changes: 1 addition & 7 deletions platform/msm_shared/include/glink_os_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
INCLUDE FILES
===========================================================================*/
#include <sys/types.h>
#include <string.h>
#include <assert.h>

Expand All @@ -55,13 +56,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define DALSYS_SYNC_OBJ_SIZE_BYTES 40
#define DALSYS_EVENT_OBJ_SIZE_BYTES 80

typedef bool boolean;
typedef uint64_t uint64;
typedef uint32_t uint32;
typedef long int32;
#define TRUE 1
#define FALSE 0

typedef struct DALSYSEventObj DALSYSEventObj;

struct DALSYSEventObj
Expand Down
4 changes: 1 addition & 3 deletions platform/msm_shared/include/msm_panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@
#ifndef _PLATFORM_MSM_SHARED_MSM_PANEL_H_
#define _PLATFORM_MSM_SHARED_MSM_PANEL_H_

#include <sys/types.h>
#include <stdint.h>
#include <dev/fbcon.h>

#define TRUE 1
#define FALSE 0

#define DFPS_MAX_FRAME_RATE 10
#define DFPS_PLL_CODES_SIZE 0x1000 /* One page */

Expand Down

0 comments on commit 66ea6fd

Please sign in to comment.