BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
4160cb4d
Commit
4160cb4d
authored
Nov 05, 2018
by
Ashish Syal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated BQ27xxx as previous online version didnt compile
parent
835aa641
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
bq27xxx_battery_i2c.c
linux_kernel_modules/bq27xxx/bq27xxx_battery_i2c.c
+3
-1
bq27xxx_battery_i2c.mdef
linux_kernel_modules/bq27xxx/bq27xxx_battery_i2c.mdef
+1
-0
devres_backport.c
linux_kernel_modules/bq27xxx/devres_backport.c
+6
-2
power_supply_backport.c
linux_kernel_modules/bq27xxx/power_supply_backport.c
+2
-1
No files found.
linux_kernel_modules/bq27xxx/bq27xxx_battery_i2c.c
View file @
4160cb4d
...
...
@@ -147,11 +147,13 @@ static int bq27xxx_battery_i2c_bulk_write(struct bq27xxx_device_info *di,
static
int
bq27xxx_battery_i2c_probe
(
struct
i2c_client
*
client
,
const
struct
i2c_device_id
*
id
)
{
dev_info
(
client
->
dev
,
" BQ27xx probe"
);
struct
bq27xxx_device_info
*
di
;
int
ret
;
char
*
name
;
int
num
;
dev_info
(
client
->
dev
,
" BQ27xx probe"
);
/* Get new ID for the new battery device */
mutex_lock
(
&
battery_mutex
);
num
=
idr_alloc
(
&
battery_id
,
client
,
0
,
0
,
GFP_KERNEL
);
...
...
linux_kernel_modules/bq27xxx/bq27xxx_battery_i2c.mdef
View file @
4160cb4d
...
...
@@ -2,6 +2,7 @@ sources:
{
bq27xxx_battery_i2c.c
devres_backport.c
}
requires:
...
...
linux_kernel_modules/bq27xxx/devres_backport.c
View file @
4160cb4d
#include <linux/version.h>
#include <linux/init.h>
#include <linux/module.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/of.h>
#include "device_backport.h"
/**
...
...
@@ -61,5 +63,7 @@ char *devm_kasprintf(struct device *dev, gfp_t gfp, const char *fmt, ...)
return
p
;
}
EXPORT_SYMBOL_GPL
(
devm_kasprintf
);
#endif
/* LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) */
MODULE_LICENSE
(
"GPL"
);
linux_kernel_modules/bq27xxx/power_supply_backport.c
View file @
4160cb4d
...
...
@@ -4,7 +4,7 @@
#include <linux/device.h>
#include <linux/of.h>
#include <linux/power_supply.h>
#include <linux/module.h>
#include "power_supply_backport.h"
int
power_supply_get_battery_info
(
struct
power_supply
*
psy
,
...
...
@@ -62,3 +62,4 @@ int power_supply_get_battery_info(struct power_supply *psy,
return
0
;
}
EXPORT_SYMBOL_GPL
(
power_supply_get_battery_info
);
MODULE_LICENSE
(
"GPL"
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment