Changeset 0c2d9bb in mainline for uspace/srv/hid/output/output.c


Ignore:
Timestamp:
2013-12-25T22:54:29Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b51cf2c
Parents:
f7a33de (diff), ac36aed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/output/output.c

    rf7a33de r0c2d9bb  
    8282        int ret = EOK;
    8383       
    84         list_foreach(outdevs, link) {
    85                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    86                
     84        list_foreach(outdevs, link, outdev_t, dev) {
    8785                assert(dev->ops.yield);
    8886               
     
    9997        int ret = EOK;
    10098       
    101         list_foreach(outdevs, link) {
    102                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    103                
     99        list_foreach(outdevs, link, outdev_t, dev) {
    104100                assert(dev->ops.claim);
    105101               
     
    117113        sysarg_t rows = MAX_ROWS;
    118114       
    119         list_foreach(outdevs, link) {
    120                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    121                
     115        list_foreach(outdevs, link, outdev_t, dev) {
    122116                cols = min(cols, dev->cols);
    123117                rows = min(rows, dev->rows);
     
    131125        console_caps_t caps = 0;
    132126       
    133         list_foreach(outdevs, link) {
    134                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    135                
     127        list_foreach(outdevs, link, outdev_t, dev) {
    136128                assert(dev->ops.get_caps);
    137129               
     
    145137{
    146138        frontbuf_t *frontbuf = NULL;
    147         list_foreach(frontbufs, link) {
    148                 frontbuf_t *cur = list_get_instance(link, frontbuf_t, link);
     139        list_foreach(frontbufs, link, frontbuf_t, cur) {
    149140                if (cur == (frontbuf_t *) handle) {
    150141                        frontbuf = cur;
     
    216207        chargrid_get_cursor(buf, &col, &row);
    217208       
    218         list_foreach(outdevs, link) {
    219                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    220                
     209        list_foreach(outdevs, link, outdev_t, dev) {
    221210                assert(dev->ops.cursor_update);
    222211               
     
    237226static void srv_set_style(ipc_callid_t iid, ipc_call_t *icall)
    238227{
    239         list_foreach(outdevs, link) {
    240                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    241                
     228        list_foreach(outdevs, link, outdev_t, dev) {
    242229                dev->attrs.type = CHAR_ATTR_STYLE;
    243230                dev->attrs.val.style =
     
    250237static void srv_set_color(ipc_callid_t iid, ipc_call_t *icall)
    251238{
    252         list_foreach(outdevs, link) {
    253                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    254                
     239        list_foreach(outdevs, link, outdev_t, dev) {
    255240                dev->attrs.type = CHAR_ATTR_INDEX;
    256241                dev->attrs.val.index.bgcolor =
     
    267252static void srv_set_rgb_color(ipc_callid_t iid, ipc_call_t *icall)
    268253{
    269         list_foreach(outdevs, link) {
    270                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    271                
     254        list_foreach(outdevs, link, outdev_t, dev) {
    272255                dev->attrs.type = CHAR_ATTR_RGB;
    273256                dev->attrs.val.rgb.bgcolor = IPC_GET_ARG1(*icall);
     
    325308        chargrid_t *buf = (chargrid_t *) frontbuf->data;
    326309       
    327         list_foreach(outdevs, link) {
    328                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    329                
     310        list_foreach(outdevs, link, outdev_t, dev) {
    330311                assert(dev->ops.char_update);
    331312               
     
    374355        chargrid_t *buf = (chargrid_t *) frontbuf->data;
    375356       
    376         list_foreach(outdevs, link) {
    377                 outdev_t *dev = list_get_instance(link, outdev_t, link);
    378                
     357        list_foreach(outdevs, link, outdev_t, dev) {
    379358                assert(dev->ops.char_update);
    380359               
Note: See TracChangeset for help on using the changeset viewer.