profile/ivi/kernel-x86-ivi.git
14 years agostaging: vt6656: removed '#if 1'/'#if 0' definitions
Andres More [Mon, 12 Jul 2010 15:12:25 +0000 (12:12 -0300)]
staging: vt6656: removed '#if 1'/'#if 0' definitions

Removed code guarded by always false definitions.

Signed-off-by: Andres More <more.andres@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: lis3l02dq: use iio_sw_ring_helper_state and funcs
Jonathan Cameron [Sun, 11 Jul 2010 15:39:19 +0000 (16:39 +0100)]
staging: iio: lis3l02dq: use iio_sw_ring_helper_state and funcs

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Add iio_sw_ring_helper_state and functions to cover common case.
Jonathan Cameron [Sun, 11 Jul 2010 15:39:18 +0000 (16:39 +0100)]
staging: iio: Add iio_sw_ring_helper_state and functions to cover common case.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Make extensive use of iio_sw_ring_preenable
Jonathan Cameron [Sun, 11 Jul 2010 15:39:17 +0000 (16:39 +0100)]
staging: iio: Make extensive use of iio_sw_ring_preenable

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Add a bits per element element to ring_generic allowing a general ring_...
Barry Song [Sun, 11 Jul 2010 15:39:16 +0000 (16:39 +0100)]
staging: iio: Add a bits per element element to ring_generic allowing a general ring_sw_preenable_function.

Signed-off-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Fix scan_element naming issue
Jonathan Cameron [Sun, 11 Jul 2010 15:39:15 +0000 (16:39 +0100)]
staging: iio: Fix scan_element naming issue

The addition of a number to the scan_element names caused
an issue in drivers that used either #define or an enum
to provide the number. Before this fix names like
ADIS16350_ACCEL_X_accel_x_en occur rather than 5_accel_x_en.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Add stubs for iio_ring_buffer_[un]register and equivalent driver stubs
Jonathan Cameron [Sun, 11 Jul 2010 15:39:14 +0000 (16:39 +0100)]
staging: iio: Add stubs for iio_ring_buffer_[un]register and equivalent driver stubs

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: imu: allow adis16300 and adis16400 to build without ring buffer support.
Jonathan Cameron [Sun, 11 Jul 2010 15:39:13 +0000 (16:39 +0100)]
staging: iio: imu: allow adis16300 and adis16400 to build without ring buffer support.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: replace combine_8_to_16 with be16_to_cpup where possible.
Jonathan Cameron [Sun, 11 Jul 2010 15:39:12 +0000 (16:39 +0100)]
staging: iio: replace combine_8_to_16 with be16_to_cpup where possible.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: remove timestamp field from trigger and pass instead through pollfuncs
Jonathan Cameron [Sun, 11 Jul 2010 15:39:11 +0000 (16:39 +0100)]
staging: iio: remove timestamp field from trigger and pass instead through pollfuncs

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Add iio_triggered_ring postenable and predisable + use in drivers
Jonathan Cameron [Sun, 11 Jul 2010 15:39:10 +0000 (16:39 +0100)]
staging: iio: Add iio_triggered_ring postenable and predisable + use in drivers

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Add and convert drivers to use iio_alloc_pollfunc
Jonathan Cameron [Sun, 11 Jul 2010 15:39:09 +0000 (16:39 +0100)]
staging: iio: Add and convert drivers to use iio_alloc_pollfunc

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Use kasprintf to allocate and fill trig->name
Jonathan Cameron [Sun, 11 Jul 2010 15:39:08 +0000 (16:39 +0100)]
staging: iio: Use kasprintf to allocate and fill trig->name

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: panel: fix memory leak
Kulikov Vasiliy [Mon, 12 Jul 2010 14:48:24 +0000 (18:48 +0400)]
Staging: panel: fix memory leak

panel_bind_key() must free allocated memory.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: panel: change own pieces of code by strtoul()
Andy Shevchenko [Thu, 22 Jul 2010 16:57:08 +0000 (19:57 +0300)]
staging: panel: change own pieces of code by strtoul()

We have nice method simple_strtoul() to convert string to numbers which
could be used here.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: usbip: fix memory leak
Kulikov Vasiliy [Mon, 12 Jul 2010 14:48:46 +0000 (18:48 +0400)]
staging: usbip: fix memory leak

sdev should be freed if stub_add_files() failed.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: line6: fix leaks in line6_probe()
Kulikov Vasiliy [Tue, 13 Jul 2010 11:22:46 +0000 (15:22 +0400)]
Staging: line6: fix leaks in line6_probe()

If error occurs line6_probe() must put interface and usbdev that were
got before.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: autoconvert trivial BKL users to private mutex
Arnd Bergmann [Sun, 11 Jul 2010 21:18:52 +0000 (23:18 +0200)]
Staging: autoconvert trivial BKL users to private mutex

All these files use the big kernel lock in a trivial
way to serialize their private file operations,
typically resulting from an earlier semi-automatic
pushdown from VFS.

None of these drivers appears to want to lock against
other code, and they all use the BKL as the top-level
lock in their file operations, meaning that there
is no lock-order inversion problem.

Consequently, we can remove the BKL completely,
replacing it with a per-file mutex in every case.
Using a scripted approach means we can avoid
typos.

file=$1
name=$2
if grep -q lock_kernel ${file} ; then
    if grep -q 'include.*linux.mutex.h' ${file} ; then
            sed -i '/include.*<linux\/smp_lock.h>/d' ${file}
    else
            sed -i 's/include.*<linux\/smp_lock.h>.*$/include <linux\/mutex.h>/g' ${file}
    fi
    sed -i ${file} \
        -e "/^#include.*linux.mutex.h/,$ {
                1,/^\(static\|int\|long\)/ {
                     /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex);

} }"  \
    -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \
    -e '/[      ]*cycle_kernel_lock();/d'
else
    sed -i -e '/include.*\<smp_lock.h\>/d' ${file}  \
                -e '/cycle_kernel_lock()/d'
fi

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: easycap: Upsample microphone audio
Mike Thomas [Sun, 11 Jul 2010 09:54:51 +0000 (10:54 +0100)]
Staging: easycap: Upsample microphone audio

Upsampling from 8000 Hz mono to 32000 Hz stereo improves audio/video
synchronization when userspace programs adopt default buffering.  This
is an experimental feature.

Signed-off-by: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: easycap: Replace some global variables
Mike Thomas [Sun, 11 Jul 2010 09:51:13 +0000 (10:51 +0100)]
Staging: easycap: Replace some global variables

New members of struct easycap take the place of undesirable global variables.

Signed-off-by: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: slicoss: kill functions prototypes and reorder functions
Denis Kirjanov [Sat, 10 Jul 2010 07:12:46 +0000 (07:12 +0000)]
Staging: slicoss: kill functions prototypes and reorder functions

Reorder functions to kill their prototypes.

Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: dt3155: use the fbuffer pointer instead of looking it up
H Hartley Sweeten [Fri, 9 Jul 2010 17:13:36 +0000 (10:13 -0700)]
Staging: dt3155: use the fbuffer pointer instead of looking it up

Instead of passing the minor number and having to look up the fbuffer, just
pass the fbuffer directly to the buffer management code.

Also, to make the code more consistent, change the push_empty() call so
that the fbuffer is passed as the first parameter.

Prototype the printques routine to avoid having to declare it as extern.

Cleanup some of the comments in dt3155_isr.h.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Scott Smedley <ss@aao.gov.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: tidspbridge: check kmalloc() result
Kulikov Vasiliy [Fri, 16 Jul 2010 16:14:11 +0000 (20:14 +0400)]
staging: tidspbridge: check kmalloc() result

If kmalloc() fails then exit with -ENOMEM.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: tidspbridge: remove RET_OK RET_FAIL
Nishanth Menon [Mon, 12 Jul 2010 22:56:03 +0000 (17:56 -0500)]
staging: tidspbridge: remove RET_OK RET_FAIL

RET_OK is 0 and RET_FAIL is a -1, replace these custom returns with
a standard errno

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: tidspbridge: remove custom typedef reg_uword32
Nishanth Menon [Mon, 12 Jul 2010 22:56:02 +0000 (17:56 -0500)]
staging: tidspbridge: remove custom typedef reg_uword32

use readl, writel to get and set the register instead.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: tidspbridge: remove std.h
Nishanth Menon [Mon, 12 Jul 2010 22:56:01 +0000 (17:56 -0500)]
staging: tidspbridge: remove std.h

std.h introduces _TI_ _FLOAT_ _FIXED_ _TARGET_ ARG_TO_INT ARG_TO_PTR
which are no longer being used anywhere. we dont really need the
custom std.h header. remove it from the repo. where we need types,
introduce standard types.h

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: tidspbridge: no need for custom NULL
Nishanth Menon [Mon, 12 Jul 2010 22:56:00 +0000 (17:56 -0500)]
staging: tidspbridge: no need for custom NULL

kernel has it's own NULL define, we dont need to introduce our own
custom NULL type!

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: tidspbridge: remove custom TRUE FALSE
Nishanth Menon [Mon, 12 Jul 2010 22:55:59 +0000 (17:55 -0500)]
staging: tidspbridge: remove custom TRUE FALSE

bool has standard true and false, we dont need to introduce
our own TRUE and FALSE macros.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: make variables in prototypes match within functions definitions
Rene Sapiens [Sat, 10 Jul 2010 02:24:09 +0000 (21:24 -0500)]
staging: ti dspbridge: make variables in prototypes match within functions definitions

This patch renames the variables in the parameter lists and in the function
definitions to make them match.

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:24:08 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
validBit to valid_bit
victimEntryNum to victim_entry_num
virtualAddr to virtual_addr
xType to xtype
actualValue to actual_value
EASIL1_MMUMMU_IRQSTATUSReadRegister32 to easil1_mmummu_irqstatus_read_register32
EASIL1_MMUMMU_LOCKBaseValueWrite32 to easil1_mmummu_lock_base_value_write32
easiNum to easi_num
expectedValue to expected_value
invalidValue to invalid_value
L1_base to l1_base
L2_base to l2_base
lower16Bits to lower16_bits
lower8Bits to lower8_bits
lowerMiddle8Bits to lower_middle8_bits
lowerUpper8Bits to lower_upper8_bits
maxValidValue to max_valid_value
minValidValue to min_valid_value
newValue to new_value
returnCodeIfMismatch to return_code_if_mismatch
spyCodeIfMisMatch to spy_code_if_mis_match
upper16Bits to upper16_bits
upper8Bits to upper8_bits
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case.
Rene Sapiens [Sat, 10 Jul 2010 02:24:07 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
ulBrdState to brd_state
ulChnl to chnl
ulDspAddr to dsp_add
ulDspDestAddr to dsp_dest_addr
ulDspLoadAddr to dsp_load_addr
ulDspRunAddr to dsp_run_addr
ulDspSrcAddr to dsp_src_addr
ulMapAttrs to map_attr
ulMemType to mem_type
ulRMSFxn to rms_fxn
ulStatus to ret
ulVirtAddr to virt_addr
uNumDesc to num_desc
uNumToDSP to num_to_dsp
uPaSize to pa_size
uPhase to phase
uSegId to segm_id
uStream1 to stream1
uStream2 to stream2
uZId to zid
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:24:06 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
segmentId to segmnt_id
SetPageDirty to set_page_dirty
sizeInBytes to size_in_bytes
sleepCode to sleep_code
Status to status
symName to sym_name
szVar to sz_var
Trapped_Args to trapped_args
TTBPhysAddr to ttb_phys_addr
uChirps to chirps
uChnlId to ch_id
uChnlID to ch_id
uContentSize to cont_size
uDDMAChnlId to ddma_chnl_id
uEvents to events
ulAlign to align_mask
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:24:05 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
puLen to len
pulEntry to entry_pt
pulFxnAddr to fxn_addr
pulId to chan_id
pulSegId to sgmt_id
pVaBuf to va_buf
pVirtualAddress to virtual_address
pwMbVal to mbx_val
pWord to word
pXlatorAttrs to xlator_attrs
registerFxn to register_fxn
rootPersistent to root_prstnt
sectionData to section_data
sectionInfo to section_info
sectionName to section_name
sectName to sec_name
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:24:04 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pstrFxn to str_fxn
pstrLibName to str_lib_name
pstrSect to str_sect
pstrSym to str_sym
pstrZLFileName to str_zl_file_name
pstrZLFile to str_zl_file
pszCoffPath to sz_coff_path
pszMode to sz_mode
pszName to sz_name
pszSectName to sz_sect_name
pszUuid to sz_uuid
pszZlDllName to sz_zl_dll_name
puAddr to addr
pulAddr to addr
pulBufSize to buff_size
pulBytes to nbytes
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case.
Rene Sapiens [Sat, 10 Jul 2010 02:24:03 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pPhysAddr to phys_addr
pPhysicalAddress to physical_address
ppIntfFxns to if_fxns
pProcLoadStat to proc_load_stat
pProcStat to proc_lstat
ppSym to sym_val
pRefData to ref_data
pRef to ref
preservedBit to preserved_bit
pResult to result
procID to proc_id
pSectInfo to sect_inf
pSrc to src
pstrContent to str_content
pstrDummyFile to str_dummy_file
pstrExecFile to str_exec_file
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:24:02 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pMemStatBuf to mem_stat_buf
pMgrAttrs to mgr_attrts
pMgrInfo to mgr_info
pNodeEnv to node_env
pNodeId to node_uuid
pNodeInfo to node_info
pNumLibs to num_libs
pNumPersLibs to num_pers_libs
pObjDef to obj_def
pObjUuid to obj_uuid
poolPhysBase to pool_phys_base
poolSize to pool_size
pPctxt to pctxt
ppDevContext to dev_cntxt
ppDrvInterface to drv_intf
pPersistentDepLibs to prstnt_dep_libs
pPhyAddr to phy_addr
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:24:01 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
phNldrObj to nldr_ovlyobj
phNldr to nldr
phNodeMgr to node_man
pHostBuf to host_buf
pHostConfig to host_config
phRmmMgr to rmm_mgr
phStrmMgr to strm_man
phStrm to strm_objct
phXlator to xlator
physicalAddr to physical_addr
pInfo to channel_info
pIOC to chan_ioc
pLib to lib_obj
pList to lst
pMemBuf to mem_buf
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:24:00 +0000 (21:24 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
phDevContext to device_ctx
phDevNode to dev_nde
phDevObject to device_obj
phDispObject to dispatch_obj
phDmmMgr to dmm_manager
phDrvObject to drv_obj
phDRVObject to drv_obj
phIOMgr to io_man
phLoader to loader
phManager to manager
phMgrObject to mgr_obj
phMgr to mgr
phMsgMgr to msg_man
phMsgQueue to msgq
phNldrNode to nldr_nodeobj
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case.
Rene Sapiens [Sat, 10 Jul 2010 02:23:59 +0000 (21:23 -0500)]
staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pdwSize to buff_size
pdwState to board_state
pdwValue to value
pdwVersion to version
pElemExisting to elem_existing
pEntry to entry
pExists to exists
pfEnablePerf to enable_perf
pGenObj to gen_obj
phChnlMgr to channel_mgr
phChnl to chnl
phCodMgr to cod_mgr
phDCDHandle to dcd_handle
phDcdMgr to dcd_mgr
phDehMgr to deh_manager
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case
Rene Sapiens [Sat, 10 Jul 2010 02:23:58 +0000 (21:23 -0500)]
staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pArb to arb
pbAlreadyAttached to already_attached
pBaseAddr to base_addr
pbHostBuf to host_buff
pBufVa to buf_va
pChnlInfo to channel_info
pConfig to config_param
pContent to content
pContext to context
pdcdProps to dcd_prop
pDepLibUuids to dep_lib_uuids
pDevNodeString to dev_node_strg
pDispAttrs to disp_attrs
pDsp to dsp
pdwAutoStart to auto_start
pdwChnl to chnl
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case.
Rene Sapiens [Sat, 10 Jul 2010 02:23:57 +0000 (21:23 -0500)]
staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
hStrm to stream_obj
iMode to io_mode
irqMask to irq_mask
lOffset to offset
memPtr to mem_ptr
moduleId to module_id
msgCallback to msg_callback
msgList to msg_list
nArgc to num_argc
nEntryStart to entry_start
nMemSpace to mem_space
nStatus to node_status
nStrms to strms
numLibs to num_libs
numLockedEntries to num_locked_entries
pageSize to page_sz
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case.
Rene Sapiens [Sat, 10 Jul 2010 02:23:56 +0000 (21:23 -0500)]
staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
hDevContext to dev_ctxt
hDevExtension to dev_extension
hdevObject to device_obj
hDispObject to disp_obj
hDrVObject to driver_obj
hDRVObject to driver_obj
hMGRHandle to mgr_handle
hNldrObject to nldr
hNode1 to node1
hNode2 to node2
hNodeRes to node_resource
hPCtxt to process_ctxt
hProc to proc
hStreamHandle to stream_handle
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case.
Rene Sapiens [Sat, 10 Jul 2010 02:23:55 +0000 (21:23 -0500)]
staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
dspAddr to dsp_address
dspAdr to dsp_adr
dspBaseVirt to dsp_base_virt
dwDeviceContext to device_context
dwDSPAddrOffset to dsp_addr_offset
dwDSPAddr to dsp_addr
dwErrInfo to error_info
dwGPPBaseBA to gpp_base_ba
dwMask to mask
dwTimeout to timeout
dwTimeOut to timeout
dwValue to value
entryNum to entry_num
execFile to exec_file
fFlush to flush_data
FlushMemType to flush_mem_type
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: fix compilation error
Rene Sapiens [Fri, 9 Jul 2010 22:48:52 +0000 (17:48 -0500)]
staging: ti dspbridge: fix compilation error

This patch fix a compilation error in uuid_hex_to_bin
due to the patch "simplify and clean up"

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: Rename words with camel case.
Rene Sapiens [Thu, 8 Jul 2010 23:11:08 +0000 (18:11 -0500)]
staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
aAddr to addrs
aArgs to args
aSize to len
baseAddress to base_address
bDynamicLoad to dynamic_load
bForce to force
cCharSize to char_size
cContentSize to content_size
cCount to count
cDspCharSize to dsp_char_size
cIndex to index
ClkId to clock_id
cOrigin to origin
dataBasePhys to data_base_phys
dcdObjUnion to dcd_obj
deviceContext to device_ctxt
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: quickstart: add the quickstart driver to the build
Greg Kroah-Hartman [Thu, 8 Jul 2010 23:25:55 +0000 (16:25 -0700)]
Staging: quickstart: add the quickstart driver to the build

This adds the needed Kconfig and Makefile changes to add
the quickstart driver to the build.

Cc: Angelo Arrifano <miknix@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: add quickstart acpi key driver
Angelo Arrifano [Thu, 8 Jul 2010 23:20:56 +0000 (16:20 -0700)]
Staging: add quickstart acpi key driver

This adds the quickstart acpi key driver to the staging tree

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: hyperv: add clocksource driver
Ky Srinivasan [Thu, 20 May 2010 18:54:06 +0000 (12:54 -0600)]
Staging: hyperv: add clocksource driver

This patch is a clocksource implementation suitable for guests hosted on
HyperV.  Time keeping in Linux guests hosted on HyperV is unstable. This
clocksource driver fixes the problem. This driver uses the hyperv
detection code integrated into the kernel.

Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agox86: Export the symbol ms_hyperv
Ky Srinivasan [Mon, 28 Jun 2010 14:48:55 +0000 (08:48 -0600)]
x86: Export the symbol ms_hyperv

This is needed so that the staging hyperv can properly access this
symbol.

Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: use llseek in all file operations
Arnd Bergmann [Wed, 7 Jul 2010 21:40:09 +0000 (23:40 +0200)]
Staging: use llseek in all file operations

These could not be detected by the semantic patch.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
14 years agoStaging: solo: add delay.h header
Randy Dunlap [Fri, 2 Jul 2010 23:44:13 +0000 (16:44 -0700)]
Staging: solo: add delay.h header

Several solo drivers need <linux/delay.h>, so add it to the
private solo6010.h header file.

drivers/staging/solo6x10/solo6010-core.c:191: error: implicit declaration of function 'mdelay'
drivers/staging/solo6x10/solo6010-tw28.c:181: error: implicit declaration of function 'msleep_interruptible'
drivers/staging/solo6x10/solo6010-gpio.c:78: error: implicit declaration of function 'udelay'
drivers/staging/solo6x10/solo6010-v4l2-enc.c:254: error: implicit declaration of function 'mdelay'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
14 years agoStaging: usbip: fix typos concerning "sequential"
Uwe Kleine-König [Thu, 1 Jul 2010 18:48:45 +0000 (20:48 +0200)]
Staging: usbip: fix typos concerning "sequential"

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoStaging: panel: Prevent double-calling of parport_release - fix oops.
Peter Huewe [Wed, 7 Jul 2010 02:52:16 +0000 (04:52 +0200)]
Staging: panel: Prevent double-calling of parport_release - fix oops.

This patch prevents the code from calling parport_release and
parport_unregister_device twice with the same arguments - and thus fixes an oops.

Rationale:
After the first call the parport is already released and the
handle isn't valid anymore and calling parport_release and
parport_unregister_device twice isn't a good idea.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Cc: stable <stable@kernel.org>
Acked-by: Willy Tarreau <w@1wt.eu>
14 years agoStaging: vme: vme_ca91cx42: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:16 +0000 (14:16 +0400)]
Staging: vme: vme_ca91cx42: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: vme: vme_tsi148: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:20 +0000 (14:16 +0400)]
Staging: vme: vme_tsi148: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: wlags49_h2: wl_netdev: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:25 +0000 (14:16 +0400)]
Staging: wlags49_h2: wl_netdev: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: wlags49_h2: wl_pci: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:29 +0000 (14:16 +0400)]
Staging: wlags49_h2: wl_pci: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: wlags49_h2: wl_profile: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:33 +0000 (14:16 +0400)]
Staging: wlags49_h2: wl_profile: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rt2860: usb_main_dev: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:12 +0000 (14:16 +0400)]
Staging: rt2860: usb_main_dev: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rt2860: rt_linux: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:08 +0000 (14:16 +0400)]
Staging: rt2860: rt_linux: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rt2860: rtmp_timer: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:04 +0000 (14:16 +0400)]
Staging: rt2860: rtmp_timer: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: dream: pmem: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:15:56 +0000 (14:15 +0400)]
Staging: dream: pmem: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: crystalhd_lnx: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:15:43 +0000 (14:15 +0400)]
Staging: crystalhd_lnx: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: comedi: pcm3724: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:15:36 +0000 (14:15 +0400)]
Staging: comedi: pcm3724: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: otus: wrap_sec: remove casts from void*
Kulikov Vasiliy [Tue, 29 Jun 2010 10:16:00 +0000 (14:16 +0400)]
Staging: otus: wrap_sec: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: tidspbridge: gen: simplify and clean up
Andy Shevchenko [Tue, 6 Jul 2010 15:08:52 +0000 (18:08 +0300)]
staging: tidspbridge: gen: simplify and clean up

There is recently added hex_to_bin() kernel's method which we could use
instead of custom long function.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Cc: linux-omap@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: add _BACKTRACE config
Felipe Contreras [Sun, 4 Jul 2010 13:36:26 +0000 (16:36 +0300)]
staging: ti dspbridge: add _BACKTRACE config

We only want this code when testing.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: use _DEBUG for debug trace
Felipe Contreras [Sun, 4 Jul 2010 13:36:25 +0000 (16:36 +0300)]
staging: ti dspbridge: use _DEBUG for debug trace

Obviously nobody was using DSP_TRACEBUF_DISABLED, since it wasn't even
standarized between TRACEBUF and TRACE_BUF.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: improve Kconfig
Felipe Contreras [Sun, 4 Jul 2010 13:36:24 +0000 (16:36 +0300)]
staging: ti dspbridge: improve Kconfig

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: prefix configs with TIDSPBRIDGE
Felipe Contreras [Sun, 4 Jul 2010 13:36:23 +0000 (16:36 +0300)]
staging: ti dspbridge: prefix configs with TIDSPBRIDGE

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: update copyright notice
Felipe Contreras [Sun, 4 Jul 2010 13:34:39 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: update copyright notice

Add myself... git blame seems to agree :)

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: tidying up
Felipe Contreras [Sun, 4 Jul 2010 13:34:38 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: tidying up

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: move mmufault to deh
Felipe Contreras [Sun, 4 Jul 2010 13:34:37 +0000 (16:34 +0300)]
staging: ti dspbridge: move mmufault to deh

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: access deh directly
Felipe Contreras [Sun, 4 Jul 2010 13:34:36 +0000 (16:34 +0300)]
staging: ti dspbridge: access deh directly

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: remove err_info
Felipe Contreras [Sun, 4 Jul 2010 13:34:35 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: remove err_info

We only use it to pass the MMU fault address.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: remove get_info
Felipe Contreras [Sun, 4 Jul 2010 13:34:34 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: remove get_info

Nobody is using it.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: refactor in mmu_fault_print_stack()
Felipe Contreras [Sun, 4 Jul 2010 13:34:33 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: refactor in mmu_fault_print_stack()

All this code is just to print the stack, so make it clearer.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: ensure only tlb #0 is enabled
Felipe Contreras [Sun, 4 Jul 2010 13:34:32 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: ensure only tlb #0 is enabled

We don't want the DSP to continue writing into other mapped pages, no
matter how unlikely.

Based on extensive discussion with Fernando Guzman Lugo.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: mmu: add hw_mmu_tlb_flush_all()
Felipe Contreras [Sun, 4 Jul 2010 13:34:31 +0000 (16:34 +0300)]
staging: ti dspbridge: mmu: add hw_mmu_tlb_flush_all()

So that it can be used in more than one place.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: remove unused code
Felipe Contreras [Sun, 4 Jul 2010 13:34:30 +0000 (16:34 +0300)]
staging: ti dspbridge: remove unused code

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: free dummy page immediately
Felipe Contreras [Sun, 4 Jul 2010 13:34:29 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: free dummy page immediately

There's no need to keep it around. DSP should stop trying to access
system memory.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: mmufault: trivial cleanups
Felipe Contreras [Sun, 4 Jul 2010 13:34:28 +0000 (16:34 +0300)]
staging: ti dspbridge: mmufault: trivial cleanups

No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: deh: trivial cleanups
Felipe Contreras [Sun, 4 Jul 2010 13:34:27 +0000 (16:34 +0300)]
staging: ti dspbridge: deh: trivial cleanups

No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ti dspbridge: remove contributor leftovers
Felipe Contreras [Sun, 4 Jul 2010 13:31:47 +0000 (16:31 +0300)]
staging: ti dspbridge: remove contributor leftovers

The old history (before git) had these two character ids that never
stood any chance to identify anybody.

Nobody from that list was moved to the good list of contributors, so
let's get rid of it.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: otus: use ARRAY_SIZE
Kulikov Vasiliy [Mon, 28 Jun 2010 11:55:20 +0000 (15:55 +0400)]
Staging: otus: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: wlags49_h2: use ARRAY_SIZE
Kulikov Vasiliy [Mon, 28 Jun 2010 11:55:41 +0000 (15:55 +0400)]
Staging: wlags49_h2: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: winbond: use ARRAY_SIZE
Kulikov Vasiliy [Mon, 28 Jun 2010 11:55:37 +0000 (15:55 +0400)]
Staging: winbond: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192u: use ARRAY_SIZE
Kulikov Vasiliy [Mon, 28 Jun 2010 11:55:32 +0000 (15:55 +0400)]
Staging: rtl8192u: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: use ARRAY_SIZE
Kulikov Vasiliy [Mon, 28 Jun 2010 11:55:28 +0000 (15:55 +0400)]
Staging: rtl8192e: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: otus: use ARRAY_SIZE
Kulikov Vasiliy [Mon, 28 Jun 2010 11:55:24 +0000 (15:55 +0400)]
Staging: otus: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: otus: use ARRAY_SIZE
Kulikov Vasiliy [Mon, 28 Jun 2010 11:55:16 +0000 (15:55 +0400)]
Staging: otus: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192u: remove a copy of 80211.h
Dave Jones [Sat, 3 Jul 2010 03:04:44 +0000 (23:04 -0400)]
Staging: rtl8192u: remove a copy of 80211.h

We had a request to enable one of the realtek network drivers in staging in Fedora.
After a quick lookover, I decided this wasn't such a great idea.

In doing so though, I noticed we have 6 copies of ieee80211.h there now,
Two drivers even have two copies of it.  (Even worse, cleanups have been pointlessly
happening to both files).  The patch below removes one of them, which is asides
from whitespace, identical afaics. With a change of filename to the #include,
it all still compiles for me.

A better fix would be to remove both, and have them use the core ieee80211 stuff,
but this is at least a tiny step in the right direction.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: RT2860: Fixed everything in ap.h.
Niadh [Mon, 28 Jun 2010 01:23:14 +0000 (02:23 +0100)]
Staging: RT2860: Fixed everything in ap.h.

Fixed the single two warnings in ap.h which left this file with nothing left to clean.

Signed-off-by: Neil Munro <neilmunro@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: slicoss: error handling with goto
Kulikov Vasiliy [Sun, 27 Jun 2010 13:20:47 +0000 (17:20 +0400)]
staging: slicoss: error handling with goto

This patch makes error handling more readable due to 'goto err' pattern.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Cc: Denis Kirjanov <kirjanov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: slicoss: error handling with goto
Kulikov Vasiliy [Sun, 27 Jun 2010 13:20:46 +0000 (17:20 +0400)]
staging: slicoss: error handling with goto

This patch makes error handling more readable due to 'goto err' pattern.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Cc: Denis Kirjanov <kirjanov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: slicoss: Remove STATUS_XXX defines.
Kulikov Vasiliy [Sun, 27 Jun 2010 13:20:44 +0000 (17:20 +0400)]
staging: slicoss: Remove STATUS_XXX defines.

Remove defines of STATUS_XXX from header file.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Cc: Denis Kirjanov <kirjanov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: slicoss: Change return codes to -EYYY.
Kulikov Vasiliy [Wed, 30 Jun 2010 13:02:45 +0000 (17:02 +0400)]
staging: slicoss: Change return codes to -EYYY.

Change defined STATUS_XXX return codes to standard -EYYY.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Cc: Denis Kirjanov <kirjanov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: comedi: use for_each_pci_dev()
Kulikov Vasiliy [Sat, 3 Jul 2010 15:20:47 +0000 (19:20 +0400)]
Staging: comedi: use for_each_pci_dev()

Use for_each_pci_dev() to simplify the code.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: comedi: Cleanup on dmm32at.c from checkpatch.pl
Mark [Tue, 6 Jul 2010 17:23:15 +0000 (18:23 +0100)]
Staging: comedi: Cleanup on dmm32at.c from checkpatch.pl

This patch cleans up some style issues in dmm32at.c as found by checkpatch.pl

Signed-off-by: Mark Rankilor <reodge@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: comedi: Cleanup adv_pci1710.c from checkpatch.pl
Mark [Tue, 6 Jul 2010 02:18:19 +0000 (03:18 +0100)]
Staging: comedi: Cleanup adv_pci1710.c from checkpatch.pl

This patch cleans up some issues discovered by checkpatch.pl

Signed-off-by: Mark Rankilor <reodge@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>