search for: led_brightness

Displaying 6 results from an estimated 6 matches for "led_brightness".

2016 Aug 22
10
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...HE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + */ + +/* + * Authors: + * Martin Peres <martin.peres at free.fr> + */ + +#include <linux/leds.h> + +#include "nouveau_drm.h" +#include "nouveau_led.h" +#include <nvkm/subdev/gpio.h> + +static enum led_brightness +nouveau_led_get_brightness(struct led_classdev *led) +{ + struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; + struct nouveau_drm *drm = nouveau_drm(drm_dev); + struct nvif_object *device = &drm->device.object; + u32 div, duty; + + div = nvif_rd32(device, 0x61...
2016 Aug 23
1
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...> + * Martin Peres <martin.peres at free.fr> >> + */ >> + >> +#include <linux/leds.h> >> + >> +#include "nouveau_drm.h" >> +#include "nouveau_led.h" >> +#include <nvkm/subdev/gpio.h> >> + >> +static enum led_brightness >> +nouveau_led_get_brightness(struct led_classdev *led) >> +{ >> + struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; >> + struct nouveau_drm *drm = nouveau_drm(drm_dev); >> + struct nvif_object *device = &drm->de...
2016 Aug 22
0
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + */ + +/* + * Authors: + * Martin Peres <martin.peres at free.fr> + */ + +#include <linux/leds.h> + +#include "nouveau_led.h" +#include <nvkm/subdev/gpio.h> + +#ifdef CONFIG_LEDS_CLASS +static enum led_brightness +nouveau_led_get_brightness(struct led_classdev *led) +{ + struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; + struct nouveau_drm *drm = nouveau_drm(drm_dev); + struct nvif_object *device = &drm->device.object; + u32 div, duty; + + div = nvif_rd32(device, 0x61...
2016 May 03
0
[PATCH] drm/nouveau: add a LED driver for the NVIDIA logo
.../ > + > +/* > + * Authors: > + * Martin Peres <martin.peres at free.fr> > + */ > + > +#include <linux/leds.h> > + > +#include "nouveau_drm.h" > +#include "nouveau_led.h" > +#include <nvkm/subdev/gpio.h> > + > +static enum led_brightness > +nouveau_led_get_brightness(struct led_classdev *led) > +{ > + struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; > + struct nouveau_drm *drm = nouveau_drm(drm_dev); > + struct nvif_object *device = &drm->device.object; > +...
2016 Aug 23
0
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
.../ > + > +/* > + * Authors: > + * Martin Peres <martin.peres at free.fr> > + */ > + > +#include <linux/leds.h> > + > +#include "nouveau_drm.h" > +#include "nouveau_led.h" > +#include <nvkm/subdev/gpio.h> > + > +static enum led_brightness > +nouveau_led_get_brightness(struct led_classdev *led) > +{ > + struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; > + struct nouveau_drm *drm = nouveau_drm(drm_dev); > + struct nvif_object *device = &drm->device.object; > +...
2016 May 07
0
[PATCH] drm/nouveau: add a LED driver for the NVIDIA logo
.../ > + > +/* > + * Authors: > + * Martin Peres <martin.peres at free.fr> > + */ > + > +#include <linux/leds.h> > + > +#include "nouveau_drm.h" > +#include "nouveau_led.h" > +#include <nvkm/subdev/gpio.h> > + > +static enum led_brightness > +nouveau_led_get_brightness(struct led_classdev *led) > +{ > + struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; > + struct nouveau_drm *drm = nouveau_drm(drm_dev); > + struct nvif_object *device = &drm->device.object; > +...