i2c: xi2cps: Use devm_ functions

Simplified the probe and release functions using devm_ functions

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Replaced of_get_property with of_property_read_bool

Use of_property_read_bool for DMA info in dts.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Simplified probe and remove with devm_* calls

Simplified probe and remove functions with devm_*.
Removed xudc_init function

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Remove platform_set_drvdata setup to NULL

It is done automatically.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Modified to handle Class specific control requests properly.

Offload setup packet processing to gadget layer for USB Class specific
requests with bRequest as 0x0. Ex: SEND_ENCAPSULATED_COMMAND of
CDC class

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Notify gadget layer after transfers complete.

Modified to notify gadget layer after GET and SET
control transfers.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Support for more than 64 bytes on control endpoint for IN transactions

Modified to support more than 64 bytes on Endpoint 0.
Data more than 64 bytes can be received by consecutive IN transactions.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Support for non-zero OUT trasanctions on EP0.

Modified to support non-zero OUT transactions on control Endpoint.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Use usb_endpoint_descriptor from usb_ep

Used usb_endpoint_descriptor from usb_ep for endpoint
enable/disable status

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Proper initialization of Endpoints

Initialize maxpacket of usb_ep for non-zero endpoints properly so
that gadget layer can use.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Remove set_configuration function.

Use status in xusb_udc to indicate configuration is set
and return SET_CONFIGURATION request to gadget layer.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Move match table above the usb_of_driver

Moved match table above usb_of_driver

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Use xudc_remove instead of usb_of_remove

Modified to use xudc_remove instead of usb_of_remove.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Renamed *_of_* variables and functions

Changes:
	- usb_of_probe to xudc_probe
	- usb_of_driver to xudc_driver

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Renamed variable name req to usb_req

Renamed structure member req of xusb_request to usb_req.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Renamed variable name ep to ep_usb

Renamed structure member ep of xusb_ep to ep_usb.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Removed kfree call

Removed kfree call since not required for static variable.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Fixed kernel-doc errors

Fixed kernel-doc errors

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Fix various conding style issues

Trivial changes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: Fix ch9_cmdbuf structure

- Fix kernel-doc format
- Define structure and then ch9_cmdbuf variable

Acked-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>