Age | Commit message (Collapse) | Author |
|
Allocate driver name string in info struct, rather than passing
a pointer to a stack allocated array when registering a miscdevice.
This prevents 'cat /proc/misc' from dereferencing a dangling
pointer.
Drivers of following devices were updated - ad5816, as364x, dw9718,
imx091, max77387, max77665-flash, ov5693, ov9772, sh532u, ssl3250a
and tps61050.
Change-Id: I2344e6fefabdeda962ea33bc10803881e07ab3f0
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/256818
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
|
|
enable controlling the leds asynchronously, so each of them can work under
different brightness levels.
plus minor fixes in imx132.c
bug 1175017
Change-Id: Ida4adcca7e3d0011b669ec9298e1bec309195d67
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit d9eb5fe5cf2e8eec3dd225c04f8f637bafea29fa)
(cherry picked from commit d311a4dbaf50040ae156041dd18ed90773efb64f)
Reviewed-on: http://git-master/r/202188
(cherry picked from commit de9964014b813fd2292cd233eee002c60d6a752b)
Reviewed-on: http://git-master/r/215304
Reviewed-by: Gary Fitzer <gfitzer@nvidia.com>
Tested-by: Gary Fitzer <gfitzer@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
|
|
The default mode of register CHG_CNFG_00 is 0x04 which will disable
the flash function.
Update the default mode to 0x0C.
bug 1242531
Change-Id: Icb8952817c8078e702b6764f5e398458f0078850
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/198594
(cherry picked from commit cb0d4c861d276e4c26b0d0efe038372f5cb6546b)
Reviewed-on: http://git-master/r/206879
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
|
|
The camera driver's E-states are changes to use mW values instead of mA.
Change-Id: Ib5929cf45404fdf0c5fb332027fa909f5a6efc48
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit 2868d8c74df6c8380beebf6c9d7297fdfa84c45d)
Reviewed-on: http://git-master/r/196359
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
|
|
Fix the potential NULL pointer usage in the case there is no edp client
allocated.
bug 1193275
Change-Id: I901920b65ca9ffef0d859c2746106ad7ffdbcf10
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/170249
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
enable edp support on max77665 flash device and imx091 camera sensor.
the E-state tables added are not finetuned, need calibrate later.
bug 1159989
bug 1159987
Change-Id: I9b4339247099ec1808a677f9a4bfc7b10325d625
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/166733
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Wei Chen <wechen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
|
|
add support of the on-sensor flash control
bug 1170146
Change-Id: Ie8f48c5f8065ce4b35f24e7839f78fc6d8579482
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/161015
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
turn off leds before entering LP0/LP1 mode and before exit.
bug 1172430
bug 1172390
Change-Id: I94f48f2b4f4215c5ce50c03af1b63e9341d47071
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/163652
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
|
|
the torch timer and led enable registers were not updated properly.
bug 1116953
Change-Id: If94a5a62e2cb36b3c75c1a69f22cebffdd8cbe27
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/147707
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anton Poon <antonp@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
|
|
add logic to assign flash/torch level 0 as disable flash/torch functions.
from the hardware's spec, level 0 means the lowest current 16.625mA.
add torch-by-i2c trigger option and set it as default.
also optimized the power on/off sequences.
bug 1155623
bug 1110380
bug 1116953
Change-Id: I1d592a173c4694287dff1543b21a92e3efcd8f2e
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit e799bf696300020045ab7284e007a87accbf9404)
Reviewed on: http://git-master/r/#change,145113
Reviewed-on: http://git-master/r/146034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
|
|
plus some minor fixes.
Change-Id: I3aaa757068de1047bdd03fcd75b8d53765aea005
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit b1b6b6c3031f45bf55d04e1b1cf6cbb50a150289)
Reviewed on: http://git-master/r/#change,141774
Reviewed-on: http://git-master/r/146032
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
|
|
fix trigger mode settings, and some code optimizations.
bug 1035551
Change-Id: I92cc0e0e7e9bac9b8cf26b5bba5d10c8dfad49ee
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit 0bafa31093f1ca948c43601a9bffd7dcbe00b136)
Reviewed on: http://git-master/r/#change,139959
Reviewed-on: http://git-master/r/146031
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
|
|
This flash is a sub-device of the maxim 77665a chip. It supports
dual led output, with the features of torch/flash modes, timer out,
and over-voltage protection, etc.
bug 1035551
(cherry picked from commit 3d3341d2c3a693a00aa9fc9f123d8d9b51129513)
Reviewed-on: http://git-master/r/139111
Change-Id: I299502c4f4fdce751d760d6796492f0e7342606e
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/141859
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
|