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
d9a5ac0d
Commit
d9a5ac0d
authored
Nov 20, 2018
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bq27xxx: make driver build on 9x15 platforms
parent
459c9401
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
bq27xxx_battery.mdef
linux_kernel_modules/bq27xxx/bq27xxx_battery.mdef
+1
-3
bq27xxx_battery_i2c.c
linux_kernel_modules/bq27xxx/bq27xxx_battery_i2c.c
+1
-0
bq27xxx_battery_source.c
linux_kernel_modules/bq27xxx/bq27xxx_battery_source.c
+6
-0
devres_backport.c
linux_kernel_modules/bq27xxx/devres_backport.c
+1
-3
No files found.
linux_kernel_modules/bq27xxx/bq27xxx_battery.mdef
View file @
d9a5ac0d
sources:
{
bq27xxx_battery_i2c.c
devres_backport.c
bq27xxx_battery_source.c
bq27xxx_battery_source.c
power_supply_backport.c
}
...
...
linux_kernel_modules/bq27xxx/bq27xxx_battery_i2c.c
View file @
d9a5ac0d
...
...
@@ -20,6 +20,7 @@
#include <asm/unaligned.h>
#include "bq27xxx_battery.h"
#include "bq27426-platform-data.h"
#include "device_backport.h"
static
DEFINE_IDR
(
battery_id
);
static
DEFINE_MUTEX
(
battery_mutex
);
...
...
linux_kernel_modules/bq27xxx/bq27xxx_battery_source.c
View file @
d9a5ac0d
...
...
@@ -58,6 +58,8 @@
//#include "power_supply_backport.h"
#include "bq27xxx_battery.h"
#include "bq27426-platform-data.h"
#include <linux/version.h>
#define BQ27XXX_MANUFACTURER "Texas Instruments"
/* BQ27XXX Flags */
...
...
@@ -1915,7 +1917,11 @@ int bq27xxx_battery_setup(struct bq27xxx_device_info *di, struct bq27426_platfor
di
->
bat
.
external_power_changed
=
bq27xxx_external_power_changed
;
dev_info
(
di
->
dev
,
" in the setup fourth break"
);
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
ret
=
power_supply_register
(
di
->
dev
,
&
di
->
bat
);
#else
ret
=
power_supply_register_no_ws
(
di
->
dev
,
&
di
->
bat
);
#endif
if
(
ret
!=
0
)
{
dev_err
(
di
->
dev
,
"failed to register battery
\n
"
);
return
ret
;
...
...
linux_kernel_modules/bq27xxx/devres_backport.c
View file @
d9a5ac0d
#include <linux/version.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/module.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
...
...
@@ -65,5 +65,3 @@ char *devm_kasprintf(struct device *dev, gfp_t gfp, const char *fmt, ...)
EXPORT_SYMBOL_GPL
(
devm_kasprintf
);
#endif
/* LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) */
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